from machine import Pin
import time
# Define the pin for the LED
led = Pin(15, Pin.OUT)
while True:
# Turn the LED on
led.on()
time.sleep(0.5) # Keep it on for half a second
# Turn the LED off
led.off()
time.sleep(0.5) # Keep it off for half a second