import time
import board
import digitalio
#define the LED Pin
led_pin = board.GP1
#intialize the LED pin as a digital output
led = digitalio.DigitalInOut(led_pin)
led.direction = digitalio.Direction.OUTPUT
#Main loop to blink the LED
while True:
led.value = True #turn the LED on
print("LED ON!")
time.sleep(1) #wait for 1 sec
led.value = False # Turn the LED off
print("LED OFF!")
time.sleep(1)