Search for question
Question

Assignments: Assignment 1: Write a program that makes the user LED ON for 5 seconds, then blinking at 1 Hz for 5 seconds. This pattern should be repeated indefinitely. Assignment 2:

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