diff options
author | robert-hh <robert@hammelrath.com> | 2023-02-24 14:51:36 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-05-04 13:10:38 +1000 |
commit | 250757716a91a05d28e4af8e07adda278f491199 (patch) | |
tree | 1130d7f6186ad8721330c80b78dc1f63091f409c /docs/esp32 | |
parent | 9c7ad68165bcd224c94ca6d8f172362cf8000d99 (diff) | |
download | micropython-250757716a91a05d28e4af8e07adda278f491199.tar.gz micropython-250757716a91a05d28e4af8e07adda278f491199.zip |
samd/machine_pwm: Add init() method to PWM and simplify the PWM code.
The PWM.init() method has been added. Calling init() without arguments
restarts a PWM channel stopped with deinit(). Otherwise single parameters
except for "device=n" can be changed again. The device can only be
specified once, either in the constructor or the first init() call.
Also simplify get_pwm_config() and get_adc_config(), and shrink the PWM
object.
Diffstat (limited to 'docs/esp32')
0 files changed, 0 insertions, 0 deletions