Assignment 2: Traffic Light

So for Assignment 2, I decided to make a traffic light type thing. It has four states: Red, yellow, green, and off. It automatically changes in the code because of the delay (look below)

Delay working video:

https://photos.app.goo.gl/BcLEGQyPuy652W312

 

So once I got that working, I changed the loop() to get the leds changing according to a push button switch.

arduino_traffic_light_with_button

https://photos.app.goo.gl/PgdjJLKbqnVqxTE53

 

 

 

Leave a Reply