//LED Pin Variables int ledPins[] = {2,3,4,5,6,7,8,9}; void setup() { for(int i = 0; i < 8; i++){ //this is a loop and will repeat eight times pinMode(ledPins[i],OUTPUT); //we use this to set each LED pin to output } } void loop() // run over and over again { int delayTime = 1000; //the time (in milliseconds) to pause between LEDs //make smaller for quicker switching and larger for slower for(int i = 0; i <= 7; i++){ int offLED = i - 3; if(i <= 2) { offLED = i + 5; } digitalWrite(ledPins[i], HIGH); //turn on LED #i digitalWrite(ledPins[offLED], LOW); //turn off the offLED delay(delayTime); } }