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 | |
| parent | 9c7ad68165bcd224c94ca6d8f172362cf8000d99 (diff) | |
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')
| -rw-r--r-- | docs/samd/quickref.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/samd/quickref.rst b/docs/samd/quickref.rst index cdfb0a475..7a0786d4c 100644 --- a/docs/samd/quickref.rst +++ b/docs/samd/quickref.rst @@ -191,7 +191,7 @@ It supports all basic methods listed for that class. :: PWM Constructor ``````````````` -.. class:: PWM(dest, freq, duty_u16, duty_ns, *, invert, device) +.. class:: PWM(dest, *, freq, duty_u16, duty_ns, invert, device) :noindex: Construct and return a new PWM object using the following parameters: |
