Hello,
2 quick qestions about LEDC PWM control :
- don't see a function to resume PWM after executing:
ledc_stop(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t idle_level)
what will be the procedure to resume the LED PWM?
- ledc_stop(..) - does it stops and the associated timer or the timer need to be stopped with ledc_timer_pause(..)?
Thanks
LED PWM control - resume after ledc_stop?
Re: LED PWM control - resume after ledc_stop?
After spent some time browsing driver/ledc.c, I saw that ledc_update_duty(LED_SPEED_MODE, LED_PWM_CHANNEL) has almost all the opposite operations of ledc_stop(LED_SPEED_MODE, LED_PWM_CHANNEL), so I tried and it works Ok so far
Also used ledc_timer_pause(..) after ledc_stop(..) and resp. ledc_timer_resume(..) before ledc_update_duty(..)
Also used ledc_timer_pause(..) after ledc_stop(..) and resp. ledc_timer_resume(..) before ledc_update_duty(..)
Who is online
Users browsing this forum: Google [Bot] and 93 guests