Hi all,
I want drive a step motor with ESP32 and microPython,
The PWM duty will be fixed 50%,
I want use a timer IRQ for setting the freq of the PWM with 10ms period.
The freq of PWM will be in the range of 0.5k-50kHz.
But I don't have a solution for getting the exactly number of PWM pulse in micropython.
Is there any way to know how many pulse generated by the timer(PWM mode)?
Thanks
Hi all,
I want drive a step motor with ESP32 and microPython,
The PWM duty will be fixed 50%,
I want use a timer IRQ for setting the freq of the PWM with 10ms period.
The freq of PWM will be in the range of 0.5k-50kHz.
But I don't have a solution for getting the exactly number of PWM pulse in micropython.
Is there any way to know how many pulse generated by the timer(PWM mode)?
Thanks