// Blinking 4 LEDs Program for ESP32
const int ledPins[] = {13, 12, 2, 4}; // Array of LED pins
void setup() {
for (int i = 0; i < 4; i++) {
pinMode(ledPins[i], OUTPUT); // Set each LED pin as an output
}
}
void loop() {
for (int i = 0; i < 4; i++) {
digitalWrite(ledPins[i], HIGH); // Turn the current LED on
delay(500); // Wait for 500 milliseconds
digitalWrite(ledPins[i], LOW); // Turn the current LED off
}
delay(1000); // Wait for 1 second before repeating
}