summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp8266/tutorial
diff options
context:
space:
mode:
authorOlivier Ortigues <o.ortigues@gmail.com>2020-04-22 13:57:54 +0200
committerDamien George <damien.p.george@gmail.com>2020-05-27 16:15:28 +1000
commite32302c1a62f5b0736826bc3e241a705097ba223 (patch)
tree3950cf24bd3cdd3d370a506b60818766e8510138 /docs/esp8266/tutorial
parentcae77daf003212684a84b1b3a331d45564a0c286 (diff)
downloadmicropython-e32302c1a62f5b0736826bc3e241a705097ba223.tar.gz
micropython-e32302c1a62f5b0736826bc3e241a705097ba223.zip
esp8266/esppwm: Fix PWM glitch when setting duty on different channel.
The PWM driver uses a double buffer for the PWM timing array, one in current use and the other one to update when changing duty parameters. The issue was that once the duty parameters were changed the updated buffer was applied immediately without synchronising to the start of the PWM period. By moving the buffer toggling/swapping to the interrupt when the cycle is done there are no more glitches.
Diffstat (limited to 'docs/esp8266/tutorial')
0 files changed, 0 insertions, 0 deletions