docs/esp32: Add info about PWM duty cycle range to esp32 quickref.

See related #4581.
pull/6146/head
spacemanspiff2007 2020-06-25 15:35:58 +02:00 zatwierdzone przez Damien George
rodzic cb9aafbf8f
commit b572aa5721
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -175,6 +175,7 @@ range from 1Hz to 40MHz but there is a tradeoff; as the base frequency
*increases* the duty resolution *decreases*. See
`LED Control <https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/ledc.html>`_
for more details.
Currently the duty cycle has to be in the range of 0-1023.
Use the ``machine.PWM`` class::