Hardware abstraction and initial port to cayuse's teensy-based prototype.