import time
time.sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
from machine import Pin, PWM
led = PWM(Pin(18))
led.freq(500)
led.duty_u16(65535) # about 50% duty
#min 0 max=65535import time
time.sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
from machine import Pin, PWM
led = PWM(Pin(18))
led.freq(500)
led.duty_u16(65535) # about 50% duty
#min 0 max=65535