diff options
author | Olivier Ortigues <o.ortigues@gmail.com> | 2020-04-22 13:57:54 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-05-27 16:15:28 +1000 |
commit | e32302c1a62f5b0736826bc3e241a705097ba223 (patch) | |
tree | 3950cf24bd3cdd3d370a506b60818766e8510138 /docs/esp8266/tutorial | |
parent | cae77daf003212684a84b1b3a331d45564a0c286 (diff) | |
download | micropython-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