adapted for custom teensy/Pololu 18v15 control