This library was generated from the xbee library for DIGIMESH downloaded from http://code.google.com/p/xbee-arduino/issues/detail?id=20. The differences between this file and the Xbee library downloaded from http://code.google.com/p/xbee-arduino/ were combined to get this file which makes it possible to use the LEONBARDO or MICRO(ATmega32u4 with ) with a DIGIMESH Xbee. The code added to XBeeDM32u4.cpp is: // Contributed by Paul Stoffregen for Teensy support #if defined(__AVR_ATmega32U4__) || defined(__MK20DX128__) _serial = &Serial1; #else _serial = &Serial; #endif // Support for SoftwareSerial. Contributed by Paul Stoffregen void XBee::begin(Stream &serial) { _serial = &serial; } void XBee::setSerial(Stream &serial) { _serial = &serial; } The code added to XBeeDM32u4.h is: * Starts the serial connection on the specified serial port */ void begin(Stream &serial); void setSerial(Stream &serial); Stream* _serial;