diff options
author | robert-hh <robert@hammelrath.com> | 2024-11-06 20:26:27 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-11-18 16:11:13 +1100 |
commit | e2532e0f725107becea3cf7e6d14727ab3abec7c (patch) | |
tree | 5dfa564fe2a03c9ffbd73a41513941b8091aeb59 /docs/esp32/tutorial/pwm.rst | |
parent | 898407defbb6327fde379304846999033bf349c5 (diff) | |
download | micropython-e2532e0f725107becea3cf7e6d14727ab3abec7c.tar.gz micropython-e2532e0f725107becea3cf7e6d14727ab3abec7c.zip |
mimxrt/machine_pwm: Fix a few inconsistencies with PWM output.
Changes in this commit:
- When setting PWM parameters of a FLEXPWM AB channel twice within a PWM
cycle, the second setting was ignored. Now the second setting persists.
- With `duty_u16(0)` a FLEXPWM X channel was set to high impedance. Now it
is set to low impedance with value 0 for `invert=False`, and 1 for
`invert=True`.
- The align parameter requires a duty rate and frequency to be set. Align
will now be ignored if freq or duty are missing.
Signed-off-by: robert-hh <robert@hammelrath.com>
Diffstat (limited to 'docs/esp32/tutorial/pwm.rst')
0 files changed, 0 insertions, 0 deletions