import time time.sleep(0.1) from machine import Pin, PWM red = PWM(Pin(10)) red.freq(1000) red.duty_u16(65535)