Browse Source
The PWM at full value was not considered as an "active" channel so if no other channel was used the timer used to mange PWM was not started. So when another duty value was set the PWM timer restarted and there was a visible glitch when driving LEDs. Such a glitch can be seen with the following code (assuming active-low LED on pin 0): p = machine.PWM(machine.Pin(0)) p.duty(1023) # full width, LED is off p.duty(1022) # LED flashes brightly then goes dim This patch fixes the glitch.pull/3633/merge
Olivier Ortigues
7 years ago
committed by
Damien George
1 changed files with 3 additions and 10 deletions
Loading…
Reference in new issue