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
Revision 21:d3784939bbc0, committed 2017-06-28
- Comitter:
- Jun_adi
- Date:
- Wed Jun 28 13:03:00 2017 +0000
- Parent:
- 20:e7bc34a4a3db
- Commit message:
- Update typo
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r e7bc34a4a3db -r d3784939bbc0 main.cpp --- 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);