// Led interfaceing
// Define the pin number for the LED
#define led 4
void setup() {
// Initialize serial communication with a baud rate of 115200
Serial.begin(115200);
// Print "Hello, ESP32!" to the serial monitor
Serial.println("Hello, ESP32!");
// Set the LED pin as an output
pinMode(led, OUTPUT);
}
void loop() {
// Add a delay of 1000 milliseconds (1 second) to slow down the simulation
delay(1000); // this speeds up the simulation
// Turn the LED on by setting its pin to HIGH
digitalWrite(led, HIGH);
// Add a delay of 1000 milliseconds (1 second)
delay(1000); // 1000ms = 1s
// Turn the LED off by setting its pin to LOW
digitalWrite(led, LOW);
}