int ledPin = 25; // GPIO25
// GPIO stands for "General Purpose Input/Output"
// it's how microcontrollers like the ESP32 interact with the outside world.
void setup() {
pinMode(ledPin, OUTPUT); // Set GPIO2 as output
Serial.begin(115200); // Start serial communication
Serial.println("Hello ESP32");
}
void loop() {
digitalWrite(ledPin, HIGH); // LED ON
delay(2000);
digitalWrite(ledPin, LOW); // LED OFF
delay(1000);
Serial.println("Hello ESP32"); // Print every cycle
}