// sketch.ino
// Constants
const int ledPin = 2; // The built-in LED on the ESP32 is connected to GPIO 2
void setup() {
// Initialize the LED pin as an output:
pinMode(ledPin, OUTPUT);
}
void loop() {
// Turn the LED on (HIGH is the voltage level)
digitalWrite(ledPin, HIGH);
// Wait for a second
delay(1000);
// Turn the LED off by making the voltage LOW
digitalWrite(ledPin, LOW);
// Wait for a second
delay(1000);
}