Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
4.5 kB
51
Indexable
Never
int redLED1 =2;
int redLED2 =8;
int redLED3 =6;
int redLED4 =4;
int dit = 1000;



void setup() {
  // put your setup code here, to run once:
pinMode(redLED1, OUTPUT);
pinMode(redLED2, OUTPUT);
pinMode(redLED3, OUTPUT);
pinMode(redLED4, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
digitalWrite(redLED1, LOW);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, HIGH);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, HIGH);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, HIGH);
digitalWrite(redLED4, HIGH);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, LOW);

delay(dit);
digitalWrite(redLED1, LOW);
digitalWrite(redLED2, HIGH);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, HIGH);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, HIGH);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, HIGH);
digitalWrite(redLED3, HIGH);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, HIGH);
digitalWrite(redLED3, HIGH);
digitalWrite(redLED4, HIGH);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, HIGH);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, HIGH);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, HIGH);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, HIGH);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, HIGH);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, HIGH);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, HIGH);
digitalWrite(redLED4, HIGH);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, HIGH);
digitalWrite(redLED2, HIGH);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, HIGH);
digitalWrite(redLED2, HIGH);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, HIGH);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, HIGH);
digitalWrite(redLED2, HIGH);
digitalWrite(redLED3, HIGH);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, LOW);
digitalWrite(redLED2, LOW);
digitalWrite(redLED3, LOW);
digitalWrite(redLED4, LOW);

delay(dit);

digitalWrite(redLED1, HIGH);
digitalWrite(redLED2, HIGH);
digitalWrite(redLED3, HIGH);
digitalWrite(redLED4, HIGH);

delay(dit);
}