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.
Dependencies: MODSERIAL mbed-rtos mbed
Fork of Master by
bluetooth.cpp@0:4f07ba929908, 2014-09-11 (annotated)
- Committer:
- 9uS7
- Date:
- Thu Sep 11 10:15:34 2014 +0000
- Revision:
- 0:4f07ba929908
- Child:
- 1:e1cfb5850088
main_program
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| 9uS7 | 0:4f07ba929908 | 1 | #include "mbed.h" |
| 9uS7 | 0:4f07ba929908 | 2 | #include "bluetooth.h" |
| 9uS7 | 0:4f07ba929908 | 3 | |
| 9uS7 | 0:4f07ba929908 | 4 | |
| 9uS7 | 0:4f07ba929908 | 5 | void btSetupMaster(void) //setup master |
| 9uS7 | 0:4f07ba929908 | 6 | { |
| 9uS7 | 0:4f07ba929908 | 7 | btMaster.baud(9600); |
| 9uS7 | 0:4f07ba929908 | 8 | btMaster.printf("$$$"); |
| 9uS7 | 0:4f07ba929908 | 9 | wait(0.5); |
| 9uS7 | 0:4f07ba929908 | 10 | btMaster.printf("C\r"); |
| 9uS7 | 0:4f07ba929908 | 11 | wait(0.5); |
| 9uS7 | 0:4f07ba929908 | 12 | } |
| 9uS7 | 0:4f07ba929908 | 13 | |
| 9uS7 | 0:4f07ba929908 | 14 | void btSetupSlave(void) |
| 9uS7 | 0:4f07ba929908 | 15 | { |
| 9uS7 | 0:4f07ba929908 | 16 | } |
