from machine import Pin
import time
# Define the pin connected to the LED
led = Pin(8, Pin.OUT) # Change the pin number as needed
while True:
led.on() # Turn the LED on
time.sleep(1) # Keep it on for 1 second
led.off() # Turn the LED off
time.sleep(1) # Keep it off for 1 second