Arduino code for Teensy 2.0 microcontroller to act as a joystick axis By Jaymis - http://jaymis.com
Full Project Details - http://jaymis.com/2016/06/exercise-bike-controller
Based on "Encoder Library - Basic Example" and requires Encoder Library by PJRC: http://pjrc.com/teensy/td_libs_Encoder.html