from machine import Pin
import time

# Pin number to which the LED is connected
led_pin = Pin(2, Pin.OUT)  # You can change this to the GPIO pin you are using

while True:
    # Turn on the LED
    led_pin.on()
    time.sleep(1)  # Wait for 1 second

    # Turn off the LED
    led_pin.off()
    time.sleep(1)  # Wait for 1 second