• 6 years ago
IMTx: DMx102
Arduino Programming, from novice to ninja
Lab 1 (auto-graded)

1. All the pins have to be set as OUTPUT at the beginning of the sketch
2. The green LED (on pin 4) is switched on for 3 seconds (green LED will be the first to light up) then it is switched off
3. When the green LED is switched off, orange LED is switched on for 1 seconds then it is switched off again
4. When the orange LED is switched off, red LED is switched on for 3 seconds then it is switched off again
5. These instructions must run again and again in the loop()!

Recommended