Learn more

 Now that you’ve successfully programmed your traffic lights, try getting the yellow LED to flash faster. When you increase the milliseconds in the delay function(), the LED flashes more slowly; when you decrease them, it will flash faster. The time that the LED waits until performing a given operation is longer or shorter, respectively.

 What happens when you remove all the delay() from the code? Will the traffic lights flash?

Feedback

Scroll to Top