Simple xbee library based on the Serial class with added reset signaling
Diff: xbee.h
- Revision:
- 0:a4621ef93d99
diff -r 000000000000 -r a4621ef93d99 xbee.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xbee.h Fri Nov 06 18:49:29 2015 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" + +class Xbee : public Serial{ + + public: + Xbee(PinName tx, PinName rx, PinName reset, const char* name = NULL); + + void enable(); + void disable(); + void reset(); + + protected: + DigitalOut rst; + +}; \ No newline at end of file