Exercising Arrays

  1. Modify the code so that all 3 LED’s blink at the same time.

  2. Modify the circuit so that it has 6 LED’s, each with one red, one green and one yellow LED.
    Then modify the code to simulate an actual traffic light, so that when the red LED from one
    set turns on, the green LED from the opposite set turns on. The red LED from the first set
    has to stay on until the yellow LED from the opposite set turns off. Etc. (You may find it
    useful to set up a second set of arrays to deal with the second set of LEDs.)