int timer = 100;
void setup() {
for (int thisPin = 2; thisPin <>
pinMode(thisPin, OUTPUT);
}
}
void loop() {
for (int thisPin = 0; thisPin <>
digitalWrite(thisPin, HIGH);
delay(timer);
digitalWrite(thisPin, LOW);
}
for (int thisPin = 7; thisPin >= 2; thisPin--) {
digitalWrite(thisPin, HIGH);
delay(timer);
digitalWrite(thisPin, LOW);
}
}
No comments:
Post a Comment