diff options
author | robert-hh <robert@hammelrath.com> | 2023-02-24 17:06:34 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-05-04 13:13:05 +1000 |
commit | 84302b2854334371217015a5924978c009a94d30 (patch) | |
tree | c595cfea041578f8bd54b826b85e4ef781640a9b /docs/esp32 | |
parent | 250757716a91a05d28e4af8e07adda278f491199 (diff) | |
download | micropython-84302b2854334371217015a5924978c009a94d30.tar.gz micropython-84302b2854334371217015a5924978c009a94d30.zip |
rp2/machine_pwm: Enable keyword args in constructor and add init method.
This adds support for freq/duty_u16/duty_ns keyword arguments in the PWM
constructor, and adds the PWM.init() method. Using init() without
arguments enables a previously deinit-ed PWM again.
Further changes in this commit:
- Do not start PWM output if only duty was set.
- Stop all PWM slices on soft-reset.
- Fix a bug when changing the freq on a channel pair with duty_ns set.
Diffstat (limited to 'docs/esp32')
0 files changed, 0 insertions, 0 deletions