summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp32
diff options
context:
space:
mode:
authorspacemanspiff2007 <accounts@sgerber.de>2020-06-25 15:35:58 +0200
committerDamien George <damien@micropython.org>2020-06-30 22:28:09 +1000
commitb572aa5721e3516367c56fba9e0d09ac0edbbd2c (patch)
tree216051bc60ae8cedd542b1547d087f33e6d434a5 /docs/esp32
parentcb9aafbf8f0ee912e5f4d0a32d5f9765d9e8f30c (diff)
downloadmicropython-b572aa5721e3516367c56fba9e0d09ac0edbbd2c.tar.gz
micropython-b572aa5721e3516367c56fba9e0d09ac0edbbd2c.zip
docs/esp32: Add info about PWM duty cycle range to esp32 quickref.
See related #4581.
Diffstat (limited to 'docs/esp32')
-rw-r--r--docs/esp32/quickref.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/esp32/quickref.rst b/docs/esp32/quickref.rst
index 8861ca4ac8..b4f443a910 100644
--- a/docs/esp32/quickref.rst
+++ b/docs/esp32/quickref.rst
@@ -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::