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
btbee.cpp@0:e7cb710c8900, 2013-05-16 (annotated)
- Committer:
- ngoldin
- Date:
- Thu May 16 10:24:06 2013 +0000
- Revision:
- 0:e7cb710c8900
- Child:
- 1:56f437e4d9e0
first commit. ;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ngoldin | 0:e7cb710c8900 | 1 | #include "btbee.h" |
ngoldin | 0:e7cb710c8900 | 2 | |
ngoldin | 0:e7cb710c8900 | 3 | btbee::btbee(PinName respin, PinName tx, PinName rx) : |
ngoldin | 0:e7cb710c8900 | 4 | Serial(tx, rx) , reset_out(respin) |
ngoldin | 0:e7cb710c8900 | 5 | { |
ngoldin | 0:e7cb710c8900 | 6 | reset_out.write(1); |
ngoldin | 0:e7cb710c8900 | 7 | } |
ngoldin | 0:e7cb710c8900 | 8 | |
ngoldin | 0:e7cb710c8900 | 9 | btbee::btbee( ) : |
ngoldin | 0:e7cb710c8900 | 10 | Serial(p28,p27), reset_out(p26) |
ngoldin | 0:e7cb710c8900 | 11 | { |
ngoldin | 0:e7cb710c8900 | 12 | reset_out.write(1); |
ngoldin | 0:e7cb710c8900 | 13 | } |
ngoldin | 0:e7cb710c8900 | 14 | |
ngoldin | 0:e7cb710c8900 | 15 | void btbee::reset(void){ |
ngoldin | 0:e7cb710c8900 | 16 | reset_out.write(0); |
ngoldin | 0:e7cb710c8900 | 17 | wait(0.01); |
ngoldin | 0:e7cb710c8900 | 18 | reset_out.write(1); |
ngoldin | 0:e7cb710c8900 | 19 | } |
ngoldin | 0:e7cb710c8900 | 20 |