Code for interfacing Quadrature encoder with Mbed compatible microcontrollers.
Written on Platform io IDE. May not directly compile on Mbed online IDE
Concepts are explained in the following site
https://www.edn.com/design/integrated-circuit-design/4363949/DeResumecode-a-quadrature-encoder-in-software