Here is the connection of the LED on the ESP32 board:
// Pin GPIO1 where the LED is connected
const int ledPin = 1;
void setup() {
// Initialize the GPIO1 as an output
pinMode(ledPin, OUTPUT);
}
void loop() {
// Turn on the LED
digitalWrite(ledPin, HIGH);
// Wait for 1000 milliseconds (1 second)
delay(1000);
// Turn of the LED
digitalWrite(ledPin, LOW);
// Wait for 1000 milliseconds (1 second)
delay(1000);
}