from machine import Pin
from time import sleep
#set up Pin 15 as an output
led=Pin(2,Pin.OUT)
#Blink the LED in an infinite loop
while True:
led.on() #Trun on the LED
sleep(1) #sleep for 1 second
led.off() #Trun off the LED
sleep(1) #sleep for 1 second