#define led 4
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode (led,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("Led Menyala 5 Detik");
digitalWrite(led, HIGH);
delay(5000); // this speeds up the simulation
Serial.println("Led Mati 5 Detik");
digitalWrite(led, LOW);
delay(5000); // this speeds up the simulation
}