Library for using the xbee-compatible Bluetooth Bee Module on an m3pi.
Dependencies: SensoryTest
Fork of btbee by
Diff: btbee.cpp
- Revision:
- 0:e7cb710c8900
- Child:
- 1:56f437e4d9e0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/btbee.cpp Thu May 16 10:24:06 2013 +0000 @@ -0,0 +1,20 @@ +#include "btbee.h" + +btbee::btbee(PinName respin, PinName tx, PinName rx) : + Serial(tx, rx) , reset_out(respin) +{ + reset_out.write(1); +} + +btbee::btbee( ) : + Serial(p28,p27), reset_out(p26) +{ + reset_out.write(1); +} + +void btbee::reset(void){ +reset_out.write(0); +wait(0.01); +reset_out.write(1); +} +