const int ledPin = 2; // pin 2 for the LED (commonly used on ESP32)
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(ledPin, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(ledPin, HIGH); // Turn the LED on
Serial.println("LED ON");
delay(5000); // this speeds up the simulation
digitalWrite(ledPin, LOW); // Turn the LED off
Serial.println("LED OFF");
delay(5000);
}