bluetooth
Fork of btbee by
Revision 3:6d8cebc874fb, committed 2013-05-17
- Comitter:
- jomkippur
- Date:
- Fri May 17 11:14:20 2013 +0000
- Parent:
- 2:12c38a710982
- Commit message:
- whatever
Changed in this revision
btbee.cpp | Show annotated file Show diff for this revision Revisions of this file |
btbee.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 12c38a710982 -r 6d8cebc874fb btbee.cpp --- a/btbee.cpp Thu May 16 14:01:24 2013 +0000 +++ b/btbee.cpp Fri May 17 11:14:20 2013 +0000 @@ -1,10 +1,21 @@ #include "btbee.h" + +// declaration in btbee.h, changing the the class btbee +// from here with btbee:: ... + +// public member functions?? +// inherits mbed::Stream?? + + btbee::btbee(PinName respin, PinName tx, PinName rx) : Serial(tx, rx) , reset_out(respin) { reset_out.write(1); baud(DEFAULT_BAUD); + //baud in Serial class, + // set the baud rate of the serial port?? + } btbee::btbee( ) :
diff -r 12c38a710982 -r 6d8cebc874fb btbee.h --- a/btbee.h Thu May 16 14:01:24 2013 +0000 +++ b/btbee.h Fri May 17 11:14:20 2013 +0000 @@ -9,11 +9,13 @@ public: btbee(PinName respin, PinName tx, PinName rx); btbee(void); + + // functions void reset(void); void at_baud(void); void factory_baud(void); void default_baud(void); - int read_all(char*,const int, int*); + int read_all(char*,const int, int*); protected: DigitalOut reset_out;