summaryrefslogtreecommitdiff
path: root/docs/library
diff options
context:
space:
mode:
authorOlivier Ortigues <o.ortigues@gmail.com>2018-02-23 15:41:51 +0100
committerDamien George <damien.p.george@gmail.com>2018-03-05 11:39:44 +1100
commitb691aa0aaeb9f55f96d9ed39f214f0a9e555c94d (patch)
treed33d3c01099173eff3e10ffcfcbbeec9f3f2edb3 /docs/library
parent0acf868bb72e0b94683f447baa367999d401b770 (diff)
esp8266/esppwm: Always start timer to avoid glitch from full to nonfull.
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.
Diffstat (limited to 'docs/library')
0 files changed, 0 insertions, 0 deletions