const int NUMLEDS = 5;
const int LEDPINS[NUMLEDS] = {3, 5, 6, 9, 10};
int delayValue = 1000;
void setup() {
for (int index = 0; index < NUMLEDS; index++) {
pinMode(LEDPINS[index], OUTPUT);
}
}
void loop() {
for (int index = 0; index < NUMLEDS; index++) {
digitalWrite(LEDPINS[index], HIGH);
delay(delayValue);
}
for (int index = 0; index < NUMLEDS; index++) {
digitalWrite(LEDPINS[index], LOW);
delay(delayValue);
}
}