I wrote this when I could not find Arduino code online that could accurately and reliably read 25kHz pwm signals. For reliable PWM you must handle the following edge cases: 100% or 0% PWM signal with ...
There is a boring part of every computer introduction class that shows how a computer is made up of input, output, and processing. Maybe it wouldn’t be so boring if the input device was a nunchuck.