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

mbed.bld

Committer:
EmbeddedSam
Date:
2016-01-26
Revision:
0:fb3e19364d48

File content as of revision 0:fb3e19364d48:

http://mbed.org/users/mbed_official/code/mbed/builds/6f327212ef96