A wrapper for Paul Stoffregen's Encoder library https://www.pjrc.com/teensy/td_libs_Encoder.html