import time # Provides functions for handling time, delays etc.
import board # Provides access to the physical pins and Pico hardware
import digitalio # Provides control over digital input and output
# Initialize the onboard LED
led = digitalio.DigitalInOut(board.LED)
led.direction = digitalio.Direction.OUTPUT
while True:
led.value = True # Toggle LED ON
time.sleep(1) # delay for ON state
led.value = False # toggle LED OFF
time.sleep(1) #delay for OFF state