diff options
| author | robert-hh <robert@hammelrath.com> | 2022-10-11 10:05:01 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-10-25 23:42:14 +1100 |
| commit | 474233c250536612a5245231aff1ef3ad74ccf20 (patch) | |
| tree | 6eba95f1a553f32e91324fd4eb0036fd02aacc64 /py/objobject.c | |
| parent | ac1e31267b0bf21caa31b8136208c116b1612789 (diff) | |
samd/machine_pwm: Serialize fast update of PWM settings.
Any update of freq or duty_cycle requires the previous PWM cycle to be
finished. Otherwise the new settings are not accepted.
Other changes in this commit:
- Report the set duty cycles even when the PWM is not yet started.
- pwm.freq(0) stops the pwm device, instead of raising an expception.
- Clear the duty cycle value cache on soft reset.
Diffstat (limited to 'py/objobject.c')
0 files changed, 0 insertions, 0 deletions
