



/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
void setup() {
// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
pinMode(13, OUTPUT); //yellow
pinMode(12, OUTPUT); //green
pinMode(8, OUTPUT); //red
}
void loop() {
digitalWrite(8, HIGH); // set the LED on
delay(100); // wait for a second
digitalWrite(8, LOW);
digitalWrite(12, HIGH); // wait for a second
delay(100);
digitalWrite(12, LOW); // set the LED off
digitalWrite(13, HIGH);
delay(100);
digitalWrite(13, LOW);
}
photovoltaic quote:wow i need to clean up the comments/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
void setup() {
// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
pinMode(13, OUTPUT); //yellow
pinMode(12, OUTPUT); //green
pinMode(8, OUTPUT); //red
}
void loop() {
digitalWrite(8, HIGH); // set the LED on
delay(100); // wait for a second
digitalWrite(8, LOW);
digitalWrite(12, HIGH); // wait for a second
delay(100);
digitalWrite(12, LOW); // set the LED off
digitalWrite(13, HIGH);
delay(100);
digitalWrite(13, LOW);
}

-This message has been edited by skrussmobile on 5/14/2011 11:33:08 PM

Times shown in Eastern Time (ET).