In this project you will see how traffic lights works with a Photon.You will also see how to use millis() and the grove leds library.
So, let's get started!Why did I make this project?
I make this project for learn how to use the millis() function and the leds library.I have recently started my journey in the iot world, so this is one of my first project.Explain the project
There are 2 leds RGB (the traffic lights), and a button (pedestrian call). While the first led is green and then orange, the second remains red. So the opposite, when a person click the button, the cycle of traffic lights ends and both leds turn red.