This program counts the frequency of a single output encoder on pin D2 it can be changed to suit your encoder by changing the defines at the top and playing with the sample time.

Dependencies:   mbed

Auto generated API documentation and code listings for Nucleo_FrequencyCounter_Timed

Code

main.cpp [code]