code for driving N35P112 hall-effect linear encoder joystick module on a Teensy 2.0