Read nRF51822(BLE Chip) VDD voltage and return 100 to 0% charging level

Dependents:   BLE_Temp_Vdd_via_UART_TY BLE_EddystoneBeacon_w_ACC_TY51822 BLE_LoopbackUART_low_pwr_w_RTC1 BLE_Paired_Server ... more

This is only for nRF51822.

You don't need any hardware circuit. Just read internal Vdd voltage using ADC function inside of the chip.

Revision:
2:9b1e219a7695
Parent:
1:7da210f6aff1
Child:
3:faf2e448c15b
--- a/nRF51_Vdd.h	Wed May 04 05:46:07 2016 +0000
+++ b/nRF51_Vdd.h	Sun May 29 00:54:11 2016 +0000
@@ -7,7 +7,7 @@
  *  http://www.page.sannet.ne.jp/kenjia/index.html
  *  http://mbed.org/users/kenjiArai/
  *      Created:    January   23rd, 2016
- *      Revised:    May        4th, 2016
+ *      Revised:    May       29th, 2016
  *
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
  * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
@@ -74,7 +74,7 @@
       */
     uint8_t read(void);
 
-    /** Read Voltage value (percentage)
+    /** Read Voltage value (real voltage)
       * @param none
       * @return real voltage (example 3.30V)
       */