Description
Hello,
While trying to get the same behavior as "ledc"+"ledcWriteTone" using micropython, i ended up stuck with no solution to get the 8 PWM output with different frequencies .
Goal: get 8 frequencies outputs (fixed duty) that can be modified using python as the ESP32 is able to provide this ( tested using ledc on a bare new ESP32 board).
But i probably have missed something here.
For example, using "esp32-20210902-v1.17.bin", and by default testing the example provided here is a fail:
i say fail as the output of it i absolutly not :
PWM(Pin(15), freq=100, duty=64, resolution=10, mode=0, channel=0, timer=0)
but rather:
PWM(Pin(15), freq=100, duty=64 )
Did also a ton of test by myself without understanding the logic behind mode and channel selection when creating a PWM object.
It sounds like it dynamically choose timers depending on init frequency but i'm really not sure about that.
Any help is welcome