PWM Generating at expanded GPIO
Posted: Fri Dec 06, 2019 1:06 pm
Hi,
I have I2C GPIO expander. I used to generate PWM using,and at one of the original GPIOs of the ESP32.
Is it possible to use those function to generate PWM at GPIO in the expander? If not, what s the best way to do this manually? I tried to start new task and do the generating manually via sending LOW and HIGH signals to the external GPIO but it was very slow and killing the ESP processor (I need 5KHZ frequency PWM).
Any suggestion?
Thanks!
I have I2C GPIO expander. I used to generate PWM using
Code: Select all
ledc_channel_config
Code: Select all
ledc_set_duty
Code: Select all
ledc_update_duty
Is it possible to use those function to generate PWM at GPIO in the expander? If not, what s the best way to do this manually? I tried to start new task
Code: Select all
xCreateTask
Any suggestion?
Thanks!