Write a program that makes the user LED start blinking when the user push button is pressed once. Assignment 3: Using the mbed application shield, write a program that mimics a traffic light operation. The green light should be ON for some time, then yellow light should be ON for a shorter period, then red light should be ON for a longer period. The (green-yellow-red) sequence should be repeated indefinitely. For demonstrations, make the green period 10 seconds, the yellow period 2 seconds, and the red period 12 seconds. (Note: Red + Green = Yellow)
Fig: 1