NCTU Programming Marathon / Mbed 2 deprecated Program3_BLEHeartRate

Dependencies:   BLE_API X_NUCLEO_IDB0XA1 mbed

Fork of Program3_BLEHeartRate by Make NTU Hackathon

Files at this revision

API Documentation at this revision

Comitter:
apalmieri
Date:
Tue Sep 29 09:11:55 2015 +0000
Parent:
0:eb7f02ad28a7
Child:
2:bc0c0d442a24
Commit message:
Do not use LED when compiling for 'IDB0XA1_D13_PATCH'

Changed in this revision

BLE_API.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/BLE_API.lib	Tue Sep 22 18:11:51 2015 +0000
+++ b/BLE_API.lib	Tue Sep 29 09:11:55 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#8cea5d9c12c0
+http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#d494ad3e87bd
--- a/main.cpp	Tue Sep 22 18:11:51 2015 +0000
+++ b/main.cpp	Tue Sep 29 09:11:55 2015 +0000
@@ -21,7 +21,10 @@
 #include "ble/services/DeviceInformationService.h"
 
 BLE  ble;
+
+#if !defined(IDB0XA1_D13_PATCH)
 DigitalOut led1(LED1);
+#endif
 
 const static char     DEVICE_NAME[]        = "HRM1";
 static const uint16_t uuid16_list[]        = {GattService::UUID_HEART_RATE_SERVICE,
@@ -35,8 +38,10 @@
 
 void periodicCallback(void)
 {
+
+#if !defined(IDB0XA1_D13_PATCH)
     led1 = !led1; /* Do blinky on LED1 while we're waiting for BLE events */
-
+#endif
     /* Note that the periodicCallback() executes in interrupt context, so it is safer to do
      * heavy-weight sensor polling from the main thread. */
     triggerSensorPolling = true;
@@ -44,7 +49,10 @@
 
 int main(void)
 {
+
+#if !defined(IDB0XA1_D13_PATCH)    
     led1 = 1;
+#endif
     Ticker ticker;
     ticker.attach(periodicCallback, 1); // blink LED every second
 
--- a/mbed.bld	Tue Sep 22 18:11:51 2015 +0000
+++ b/mbed.bld	Tue Sep 29 09:11:55 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/b9ad9a133dc7
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/4f6c30876dfa
\ No newline at end of file