Modified sample program of BLE_BatteryLevel. The program add analog input pin setting and batteryLevel data is changed by analog input.

Dependencies:   BLE_API mbed nRF51822 X_NUCLEO_IDB0XA1

Fork of BLE_BatteryLevel by Bluetooth Low Energy

Revision:
21:d3784939bbc0
Parent:
20:e7bc34a4a3db
--- a/main.cpp	Thu Jun 08 05:22:45 2017 +0000
+++ b/main.cpp	Wed Jun 28 13:03:00 2017 +0000
@@ -23,7 +23,7 @@
 BatteryService *batteryService = NULL;
 
 //uint8_t batteryLevel = 50;
-uint8_t batteryLevel = 50;  // Change initial calue of batteryLevel
+uint8_t batteryLevel = 0;  // Change initial value of batteryLevel
 
 //Pin setting for Analog input
 AnalogIn    analogin(P0_4);