Hi for the last 2 days now i have been trying to get some traffic lights to light up and when the yellow light is turned on again and the button is pressed again a message in the serial monitor will show up how long it will take until a pedestrian will be able to walk.
My code is: const int Greenledpin = 8;const int Blueledpin = 10;const int Redledpin - Pastebin.com
Did you have a question or problem?
The most obvious issue I can see, is your using a LOT of delays, which are blocking your code from doing anything else until they are done. What you need to look at is the Blink Without Delay sketch, it's an example provided to you under the Arduino's Examples.
When you get that to work, you can cut the code down with an array and a for loop.