# Use the Machine library from MicroPython to access pins on the Pico.
from machine import Pin
# utime is a verion of Python's "time" library
# that's been optimized for MicroPython
import utime
# Create a variable that tells Python which Pin the LED is attached to.
led = machine.Pin(25, machine.Pin.OUT)
# Create a loop that turns the LED on and off every second.
while True:
## Uncomment this section (and comment out the active
## code) to use the toggle command instead of on/off
led.toggle()
utime.sleep(5)
'''
led.on()
utime.sleep(1)
led.off()
utime.sleep(1)
'''