import time
import board
import digitalio
# Define the LED pin
led_pin = board.GP1 # Use GP1 for the GPIO pin
# Initialize the LED pin as a digital output
led = digitalio.DigitalInOut(led_pin)
led.direction = digitalio.Direction.OUTPUT
# Blink the LED
while True:
led.value = True # Turn on the LED
time.sleep(1) # Wait for 1 second
led.value = False # Turn off the LED
time.sleep(1) # Wait for 1 second