import machine
import time
time.sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico W!")
# Define the LED pin:
led = machine.Pin(1, machine.Pin.OUT)
while True:
led.value(1) # Turn on the LED (set the pin value to 1/High)
print("LED On")
time.sleep(1) # Wait for 1 second
led.value(0) # Turn off the LED (set the pin value to 0/Low)
print("LED Off")
time.sleep(1) # Wait for 1 second