예제6) 블루투스 기본
Dependencies: mbed
Fork of Bluetooth_HC-06 by
main.cpp
- Committer:
- robertchoi
- Date:
- 2017-10-17
- Revision:
- 1:236a0b8e3307
- Parent:
- 0:feba469f2cf1
File content as of revision 1:236a0b8e3307:
#include "mbed.h" Serial HC06(D1,D0); int main() { HC06.baud(9600); HC06.printf("Press 'r'\n"); while (1) { char c = HC06.getc(); if(c == 'r') { HC06.printf("Hello World\n"); } } }