Micro-Python
# Import necessary libraries
from machine import Pin
import time

# Initialize as output
led = Pin(26, Pin.OUT)  #Create an object called led with pin 26
while True:
        led.on()
        time.sleep(1)
        led.off()
        time.sleep(1)