from machine import pin, PWM import utime MID = 1500000 MIN = 1000000 MAX = 2000000 pwm = PWM(Pin(15)) pwm.freq(50) pwm.duty_ns(MID) while True: pwm.duty_ns(MIN) utime.sleep(1) pwm.duty_ns(MID) utime.sleep(1) pwm.duty_ns(MAX) utime.sleep(1) from machine import Pin,PWM import utime MIN1 = 1000000 MIN2 = 1000000 MIN3 = 1000000 pwm1 = PWM(Pin(15)) pwm2 = PWM(Pin(14)) pwm3 = PWM(Pin(13)) pwm1.freq(50) pwm2.freq(50) pwm3.freq(50) pwm1.duty_ns(MIN1) pwm2.duty_ns(MIN2) pwm3.duty_ns(MIN3) while True: pwm1.duty_ns(MIN1) utime.sleep(1) pwm2.duty_ns(MIN2) utime.sleep(1) pwm3.duty_ns(MIN3) utime.sleep(1)