8000 esp32/machine_pwm.c: Reduce inconsistencies ports. · micropython/micropython@3a65146 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3a65146

Browse files
committed
esp32/machine_pwm.c: Reduce inconsistencies ports.
esp32/machine_pwm.c: Reduce PWM inconsistencies between 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. Allows to output PWM 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>
1 parent 4c2e478 commit 3a65146

File tree

1 file changed

+540
-426
lines changed

1 file changed

+540
-426
lines changed

0 commit comments

Comments
 (0)
0