Re-writing Adafruit's AF_XPort library for Arduino IDE 1.0