Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of btbee by
Revision 0:e7cb710c8900, committed 2013-05-16
- Comitter:
- ngoldin
- Date:
- Thu May 16 10:24:06 2013 +0000
- Child:
- 1:56f437e4d9e0
- Commit message:
- first commit. ;
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 |
--- /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);
+}
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/btbee.h Thu May 16 10:24:06 2013 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+#include "platform.h"
+
+class btbee: public Serial{
+ public:
+ btbee(PinName respin, PinName tx, PinName rx);
+ btbee(void);
+ void reset(void);
+
+ protected:
+ DigitalOut reset_out;
+};
\ No newline at end of file
