From b572aa5721e3516367c56fba9e0d09ac0edbbd2c Mon Sep 17 00:00:00 2001 From: spacemanspiff2007 Date: Thu, 25 Jun 2020 15:35:58 +0200 Subject: [PATCH] docs/esp32: Add info about PWM duty cycle range to esp32 quickref. See related #4581. --- docs/esp32/quickref.rst | 1 + 1 file changed, 1 insertion(+) 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 `_ for more details. +Currently the duty cycle has to be in the range of 0-1023. Use the ``machine.PWM`` class::