This program will enable the communication between bluetooth HC-06 module and mbed Nucleo STF401RE

Dependencies:   mbed

Fork of mbed_bluetooth_HC-06_communication by Hema Vadlamudi

Files at this revision

API Documentation at this revision

Comitter:
barry210110
Date:
Wed Aug 01 08:04:52 2018 +0000
Parent:
0:4b83964a5228
Commit message:
HC05_TEST

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 4b83964a5228 -r 22cda9aef3e6 main.cpp
--- a/main.cpp	Mon Jun 08 10:10:53 2015 +0000
+++ b/main.cpp	Wed Aug 01 08:04:52 2018 +0000
@@ -1,8 +1,8 @@
 #include "mbed.h"
 
-Serial bt(D10,D2);
+Serial bt(PA_11, PA_12);
 Serial pc(USBTX,USBRX);
-DigitalOut myled(D13);
+DigitalOut myled(LED2);
 
 int main()
 {
@@ -21,7 +21,7 @@
                 myled = 1;
                 bt.printf("LED is ON");
             }
-            //tutn on LED if "n" is entered
+            //turn on LED if "n" is entered
             if(input_key == 'n') {
                 myled = 0;
                 bt.printf("LED is OFF");