added

Dependencies:   mbed microbit BLE_API nRF51822

Files at this revision

API Documentation at this revision

Comitter:
anuragarm
Date:
Mon Sep 09 06:41:38 2019 +0000
Parent:
11:6916c05fde52
Commit message:
added

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
microbit.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 6916c05fde52 -r deed12c7f372 main.cpp
--- a/main.cpp	Fri Sep 07 20:17:07 2018 +0000
+++ b/main.cpp	Mon Sep 09 06:41:38 2019 +0000
@@ -116,7 +116,7 @@
         ble.waitForEvent();
         val = ain.read_u16();
     // 22k+100K VOLTAGE DIVIDER AND 0.15 IS OFFSET   
-    batt = (122/22)*3.6*val/1023.0 - 0.15
+    batt = (122/22)*3.6*val/1023.0 - 0.15;
     dVal = batt;
     dec = (int)(batt * 100) % 100;
 
diff -r 6916c05fde52 -r deed12c7f372 microbit.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microbit.lib	Mon Sep 09 06:41:38 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/teams/Lancaster-University/code/microbit/#4b89e7e3494f