2023-05-18 12:40 PM - edited 2023-11-20 5:07 AM
2023-05-19 1:52 AM
Hello @abodi.1,
No, there is no ready-to-use HAL function to vary a PWM signal through a pot
You need to connect the pot to an ADC_IN and then in the HAL_ADC_ConvCpltCallback, read the ADC value and vary the duty cycle.
I hope that helps!
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.