/* Blink x3 Alternates the states (on/off) of three LEDs attached to digital outputs 13,12 and 11. Matt Kendrick - Jan. 2012 mattkendrick.com */ void setup() { // initialize two digital pins as an output. pinMode(11, OUTPUT); pinMode(12, OUTPUT); pinMode(13, OUTPUT); } void loop() { digitalWrite(13, HIGH); // set the LED on digitalWrite(12, LOW); // set the LED off digitalWrite(11, LOW); // set the LED off delay(1000); // wait for a second digitalWrite(13, LOW); // set the LED on digitalWrite(12, HIGH); // set the LED off digitalWrite(11, LOW); // set the LED off delay(1000); // wait for a second digitalWrite(13, LOW); // set the LED on digitalWrite(12, LOW); // set the LED off digitalWrite(11, HIGH); // set the LED off delay(1000); // wait for a second }