from machine import Pin
import time
time.sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
# Define the LED pin (GP15)
led = Pin(15, Pin.OUT)
print("Testing LED on GP15")
while True:
print("I am in while loop")
led.value(1) # Turn LED on
print("LED state", led.value())
time.sleep(1) # Wait for 1 second
led.value(0) # Turn LED off
print("LED state:", led.value())
time.sleep(1) # Wait for 1 second