My Arduino and Teensy-based physical controller code