Semaphores

The traffic lights were used long before the first cars appreared. In 1868, a flash-light with red and green signals was used in the London intersection to control the carriages and the pedestrians