import time
from machine import Pin
# Declare GPIO pin for LED (usually GPIO2 on ESP32)
led = Pin(2, Pin.OUT)
while True:
led.value(1) # Turn on LED
time.sleep(1) # delay 1S
led.value(0) # Turn off LED
time.sleep(1) # delay 1s