8000 esp32/machine_pwm: Add support for all PWM timers and channels. · micropython/micropython@52636fa · GitHub
[go: up one dir, main page]

Skip to content

Commit 52636fa

Browse files
IhorNehrutsadpgeorge
authored andcommitted
esp32/machine_pwm: Add support for all PWM timers and channels.
This commit allows using all the available PWM timers (up to 8) and channels (up to 16), without affecting the PWM API. If a new frequency is set, first it checks if another timer is using the same frequency. If yes, then it uses this timer, otherwise, it creates a new one. If all timers are used, the user should set an already used frequency, or de-init a channel. This work is based on #6276 and #3608.
1 parent 0d9429f commit 52636fa

File tree

1 file changed

+314
-105
lines changed

1 file changed

+314
-105
lines changed

0 commit comments

Comments
 (0)
0