const int red = 2;
const int blue = A4;
void setup() {
pinMode(red, OUTPUT);
pinMode(blue, OUTPUT);
}
void loop() {
digitalWrite(red, HIGH);
digitalWrite(blue, LOW);
delay(500);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(500);
digitalWrite(red, HIGH);
digitalWrite(blue, LOW);
delay(500);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(500);
digitalWrite(red, HIGH);
digitalWrite(blue, LOW);
delay(500);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(500);
digitalWrite(red, HIGH);
digitalWrite(blue, LOW);
delay(500);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(500);
digitalWrite(red, HIGH);
digitalWrite(blue, LOW);
delay(500);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(500);
digitalWrite(red, HIGH);
digitalWrite(blue, LOW);
delay(500);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(500);
digitalWrite(red, HIGH);
digitalWrite(blue, LOW);
delay(200);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(200);
digitalWrite(red, HIGH);
digitalWrite(blue, LOW);
delay(200);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(200);
digitalWrite(red, HIGH);
digitalWrite(blue, LOW);
delay(200);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(200);
digitalWrite(red, HIGH);
digitalWrite(blue, LOW);
delay(200);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(200);
digitalWrite(red, HIGH);
digitalWrite(blue, LOW);
delay(00);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(200);
digitalWrite(red, HIGH);
digitalWrite(blue, LOW);
delay(200);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(200);
digitalWrite(red, HIGH);
digitalWrite(blue, LOW);
delay(200);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(200);
digitalWrite(red, HIGH);
digitalWrite(blue, LOW);
delay(200);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(200);
digitalWrite(red, HIGH);
digitalWrite(blue, LOW);
delay(200);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(200);
digitalWrite(red, HIGH);
digitalWrite(blue, LOW);
delay(200);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(200);
digitalWrite(blue, LOW);
digitalWrite(red, LOW);
delay(200);
digitalWrite(red, HIGH);
delay(200);
digitalWrite(red, LOW);
delay(200);
digitalWrite(red, HIGH);
delay(200);
digitalWrite(red, LOW);
delay(200);
digitalWrite(red, HIGH);
delay(200);
digitalWrite(red, LOW);
digitalWrite(blue, LOW);
delay(200);
digitalWrite(blue, HIGH);
delay(200);
digitalWrite(blue, LOW);
delay(200);
digitalWrite(blue, HIGH);
delay(200);
digitalWrite(blue, LOW);
delay(200);
digitalWrite(blue, HIGH);
delay(500);
}
Comments