This program send an AT command to the HC05 module and shows the response into a terminal.
Dependencies: MODSERIAL
Fork of HC05_AT_mode by
Diff: main.cpp
- Revision:
- 1:a11db105c379
- Parent:
- 0:7bb229e58814
- Child:
- 2:08505f23f37a
--- 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;