summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp32/tutorial/peripheral_access.rst
diff options
context:
space:
mode:
authorIhorNehrutsa <ihor.nehrutsa@gmail.com>2025-02-19 09:21:01 +0200
committerDamien George <damien@micropython.org>2025-05-16 12:35:58 +1000
commit150a5aa3a102fb0f1f0388275e7e59d669bb79e5 (patch)
treecf6a5e1a4be9fd48c6761ade783215d7f96b5c18 /docs/esp32/tutorial/peripheral_access.rst
parentc310301f27e351e0dc9f966556cab512b3c82615 (diff)
downloadmicropython-150a5aa3a102fb0f1f0388275e7e59d669bb79e5.tar.gz
micropython-150a5aa3a102fb0f1f0388275e7e59d669bb79e5.zip
esp32/machine_pwm: Improve PWM and make its API match other ports.
This reduce inconsistencies between esp32 PWM and other ports: 1. duty_u16() high value is 2**16-1 == 65535 2. Invert PWM wave with invert=1 parameter 3. Enable PWM in light sleep mode 4. Allow PWM output and read pulse input simultaneously on the same Pin() 5. Code refactoring Co-Authored-By: Angus Gratton <angus@redyak.com.au> Co-Authored-By: robert-hh <robert@hammelrath.com> Co-Authored-By: Andrew Leech <andrew.leech@planetinnovation.com.au> Co-Authored-By: Yoann Darche <yoannd@hotmail.com> Signed-off-by: Ihor Nehrutsa <Ihor.Nehrutsa@gmail.com>
Diffstat (limited to 'docs/esp32/tutorial/peripheral_access.rst')
0 files changed, 0 insertions, 0 deletions