aidanReceiver

Dependencies:   mbed BLE_API nRF51822

Revision:
3:ca23d318cb12
Parent:
2:89b8aef35194
Child:
4:25c53ae0ae04
--- a/receiver_main.cpp	Wed Apr 17 20:35:33 2019 +0000
+++ b/receiver_main.cpp	Wed Apr 17 21:02:11 2019 +0000
@@ -1,6 +1,8 @@
 #include "mbed.h"
 #include "ble/BLE.h"
 
+Serial pc(USBTX, USBRX);
+
 #define LED_RED     p21
 #define LED_GREEN   p22
 #define LED_BLUE    p23
@@ -68,6 +70,8 @@
     BLE& ble = BLE::Instance(BLE::DEFAULT_INSTANCE);
     ble.init(bleInitComplete);
     
+    pc.printf("Hello World!\n");
+    
     /* SpinWait for initialization to complete. This is necessary because the
      * BLE object is used in the main loop below. */
     while (ble.hasInitialized()  == false) { /* spin loop */ }