这个pwm里面Timer.channel(channel)的channel参数具体取值是多少,范围是多少
-
我用不同的Timer
p1 = Pin("P1", Pin.OUT_PP) p2 = Pin("P2", Pin.OUT_PP) p3 = Pin("P3", Pin.OUT_PP) p4 = Pin("P4", Pin.OUT_PP) tim1 = Timer(1, freq=1000) tim2 = Timer(2, freq=1000) ch1 = tim1.channel(2, Timer.PWM_INVERTED, pin=p1) ch2 = tim1.channel(3, Timer.PWM_INVERTED, pin=p2) ch3 = tim2.channel(2, Timer.PWM_INVERTED, pin=p3) ch4 = tim2.channel(3, Timer.PWM_INVERTED, pin=p4)
这里加了ch3和ch4就运行不了
-