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
Diff: main.cpp
- Revision:
- 2:a872df2e051e
- Parent:
- 1:54fe327e5d0a
- Child:
- 3:288b2baffd14
--- a/main.cpp Thu Jan 09 11:04:14 2014 +0000 +++ b/main.cpp Thu Jan 09 16:43:18 2014 +0000 @@ -1,9 +1,9 @@ #include "mbed.h" #include "UUID.h" -#include "hw/nRF51822.h" +#include "nRF51822.h" /* Radio HW */ -nRF51822 radio; +nRF51822 radio(p9, p10, p30, p29); // tx, rx, rts, cts int main(void) {