3 LEDs rigged to Controller
Lessons Learned:
- Unplug and plugin Arduino USB to create dynamic MAC OS drivers!
- 220 Ohm resistors for LED Lights — 10K Ohm resistors for buttons.
Sample Code:
// the setup function runs once when you press reset or power the board void setup() { pinMode(3, OUTPUT); // LED Green pinMode(4, OUTPUT); // LED Yellow pinMode(5, OUTPUT); // LED Blue } // the loop function runs over and over again forever void loop() { digitalWrite(3, HIGH); delay(1000); digitalWrite(3, LOW); delay(1000); // digitalWrite(4, HIGH); delay(1500); digitalWrite(4, LOW); delay(1500); // digitalWrite(5, HIGH); delay(2000); digitalWrite(5, LOW); delay(2000); }
Test run of sample code