import time
time.sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
# Define the LED pin (adjust if connected to a different GPIO)
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 1 second
led.value(0) # Turn LED off
print("LED state:", led.value())
time.sleep(1) # Wait 1 second