//https://docs.arduino.cc/built-in-examples/control-structures/Arrays/
int timer = 250;
void setup() {
// for loop initializing each pin as an output
for (int ledPin = 2; ledPin <8; ledPin++){
pinMode(ledPin, OUTPUT);
}
}
void loop() {
// for loop to output from lowest pin to highest
for (int ledPin = 2; ledPin < 8; ledPin++){
//turn the pin on:
digitalWrite(ledPin, HIGH);
delay(timer);
//turn the pin off:
digitalWrite(ledPin, LOW);
}
}