// Define the pins for the LEDs const int ledPins[] = {26, 0, 1}; // GPIO pins 26, 0, and 1 // the setup function runs once when you press reset or power the board void setup() { // initialize digital pins as outputs for (int i = 0; i < sizeof(ledPins) / sizeof(ledPins[0]); i++) { pinMode(ledPins[i], OUTPUT); } } // the loop function runs over and over again forever void loop() { // Turn on each LED one after another for (int i = 0; i < sizeof(ledPins) / sizeof(ledPins[0]); i++) { digitalWrite(ledPins[i], HIGH); // turn the LED on delay(100); // wait for a second digitalWrite(ledPins[i], LOW); // turn the LED off delay(100); // wait for a second } }