This program send an AT command to the HC05 module and shows the response into a terminal.
Dependencies: mbed-src MODSERIAL
Notebook page HERE
Revision 1:a11db105c379, committed 2012-05-31
- Comitter:
- edodm85
- Date:
- Thu May 31 19:56:30 2012 +0000
- Parent:
- 0:7bb229e58814
- Child:
- 2:08505f23f37a
- Commit message:
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu May 31 19:52:52 2012 +0000 +++ b/main.cpp Thu May 31 19:56:30 2012 +0000 @@ -8,13 +8,13 @@ #include "MODSERIAL.h" -MODSERIAL pc(USBTX, USBRX); // tx, rx +MODSERIAL pc(USBTX, USBRX); MODSERIAL blue(p9,p10); // HC05 DigitalOut led1(LED1); DigitalOut led4(LED4); -void commandAT(char *v){ +void commandAT(char *v){ // Send the AT command int i=0;