docs/esp32: Add info about PWM duty cycle range to esp32 quickref.
See related #4581.
This commit is contained in:
parent
cb9aafbf8f
commit
b572aa5721
|
@ -175,6 +175,7 @@ range from 1Hz to 40MHz but there is a tradeoff; as the base frequency
|
||||||
*increases* the duty resolution *decreases*. See
|
*increases* the duty resolution *decreases*. See
|
||||||
`LED Control <https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/ledc.html>`_
|
`LED Control <https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/ledc.html>`_
|
||||||
for more details.
|
for more details.
|
||||||
|
Currently the duty cycle has to be in the range of 0-1023.
|
||||||
|
|
||||||
Use the ``machine.PWM`` class::
|
Use the ``machine.PWM`` class::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue