Read PWM from GPIO Pins

I’m trying to find some sample code someone has used to read PWM input on the GPIO pins. Has anyone done this?
The closest I can find is this: flipperzero-firmware/hc_sr04.c at hc_sr04 · Sanqui/flipperzero-firmware · GitHub
Which I can probably make work, but was hoping for something a little closer. It’s been a very long time since I’ve done anything outside of Arduino… I got wimpy.

1 Like