![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
mbed code for UberVest health monitoring
Dependencies: BLE_API mbed nRF51822
Diff: main.cpp
- Revision:
- 5:40fcfb34e48f
- Parent:
- 4:851d3f52c344
- Child:
- 6:808cfc0b9480
--- a/main.cpp Sat Oct 24 21:05:58 2015 +0000 +++ b/main.cpp Mon Oct 26 21:26:31 2015 +0000 @@ -21,7 +21,6 @@ // Outputs DigitalOut connectionLed(LED1); DigitalOut led2(LED2); -DigitalOut led3(LED3); // Inputs InterruptIn button(BUTTON1); @@ -105,12 +104,10 @@ } if (ble.getGapState().connected && sample) { - led3 = 0; sample = false; ecgValue = (ecg.read() * 1024); uberVestServicePtr->updateEcg(ecgValue); } else { - led3 = 1; ble.waitForEvent(); } }