// Define the pin for the LED
#define LED1_BUILTIN 2 // Onboard LED pin for most ESP32 boards
#define LED2_BUILTIN 4 // Onboard LED pin for most ESP32 boards
void setup() {
// Initialize the LED pin as an output
pinMode(LED1_BUILTIN, OUTPUT);
pinMode(LED2_BUILTIN, OUTPUT);
}
void loop() {
// Turn the LED on
digitalWrite(LED1_BUILTIN, HIGH);
digitalWrite(LED2_BUILTIN, HIGH);
delay(1000); // Wait for 1 second
// Turn the LED off
digitalWrite(LED1_BUILTIN, LOW);
digitalWrite(LED2_BUILTIN, LOW);
delay(1000); // Wait for 1 second
}