void setup() {
// put your setup code here, to run once:
pinMode(6, OUTPUT); //set the LEDS as outputs
pinMode(2, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(6, HIGH); //turn on the LED for 2.5 seconds
delay(2500);
digitalWrite(2, HIGH); //turn on the second LED for 2.5 seconds
digitalWrite(6, LOW);
delay(2500);
digitalWrite(2, LOW);
}
Comments