Xiaofei Qiu / Xbee
Revision:
2:33462c1e9f45
Parent:
0:633baa9653b0
Child:
5:d14636b861ff
--- a/Xbee.h	Sun Nov 22 01:11:42 2015 +0000
+++ b/Xbee.h	Sun Nov 22 01:24:23 2015 +0000
@@ -5,7 +5,7 @@
 {
 public:
     // Use p9 and p10 as default serial pins
-    Xbee(PinName tx = p9, PinName rx = p10):_xbee(tx,rx){}
+    Xbee(PinName tx = p9, PinName rx = p10, PinName rst = p11);
     
     // Send buffer
     void Send(const char*);
@@ -15,4 +15,5 @@
     
 private:
     Serial _xbee;
+    DigitalOut _rst;
 };
\ No newline at end of file