void setup() {
pinMode(23, OUTPUT);
pinMode(22, OUTPUT);
pinMode(21, OUTPUT);
pinMode(19, OUTPUT);
pinMode(18, OUTPUT);
pinMode(17, OUTPUT);
}
void show(int a, int b, int c, int d, int e, int f) {
digitalWrite(23, a);
digitalWrite(22, b);
digitalWrite(21, c);
digitalWrite(19, d);
digitalWrite(18, e);
digitalWrite(17, f);
}
void loop() {
show(HIGH, LOW, LOW, LOW, LOW, LOW);
delay(1000);
show(LOW, HIGH, LOW, LOW, LOW, LOW);
delay(1000);
show(LOW, LOW, HIGH, LOW, LOW, LOW);
delay(1000);
show(LOW, LOW, LOW, HIGH, LOW, LOW);
delay(1000);
show(LOW, LOW, LOW, LOW, HIGH, LOW);
delay(1000);
show(LOW, LOW, LOW, LOW, LOW, HIGH);
delay(1000);
show(LOW, LOW, LOW, LOW, LOW, HIGH);
delay(1000);
show(LOW, LOW, LOW, LOW, HIGH, LOW);
delay(1000);
show(LOW, LOW, LOW, HIGH, LOW, LOW);
delay(1000);
show(LOW, LOW, HIGH, LOW, LOW, LOW);
delay(1000);
show(LOW, HIGH, LOW, LOW, LOW, LOW);
delay(1000);
show(HIGH, LOW, LOW, LOW, LOW, LOW);
delay(1000);
}