Week 9 (3 LED) - Spicca/MTEC2250 GitHub Wiki
void setup() {
pinMode(11, OUTPUT);
pinMode(10, OUTPUT);
pinMode(9, OUTPUT);
}
void loop() {
digitalWrite(11, HIGH);
delay(400);
digitalWrite(10, HIGH);
delay(400);
digitalWrite(9, HIGH);
delay(400);
digitalWrite(11, LOW);
digitalWrite(10, LOW);
digitalWrite(9, LOW); delay(400);
}
Possible uses:
-indicate to users whether a product is on, off, or sleeping (like a computer)
-LED array