Timer PWM Input (Input capture mode)

Is there any way to be able to use the Timer pins as PWM inputs (to read the duty cycle/high time of a PWM signal from (for example) a distance sensor)?

I know that STM32 timers support this (I have done this using the SPL and HAL myself on f1 boards) but with the many layers of abstraction between the user and the MCU on the OpenMV I presume I would need some library support from you guys.

Any help would be much appreciated, thanks for all the great work you guys do

See the Timer documentation:


Micropython is the HAL, so, just google that and you should get hits.