from machine import Pin
import time

# Configure pin D0 as output, in micropython it is pin 26
led = Pin(26, Pin.OUT)

while True:
    led.on()      # Turn on the LED
    time.sleep(1) # wait 1 second
    led.off()     ## Turn off the LED
    time.sleep(1) # Wait 1 second
