ver1 unfixed bug

Dependencies:   PowerMonlib2 mbed

Files at this revision

API Documentation at this revision

Comitter:
sippasaeng
Date:
Fri Jun 15 02:46:31 2018 +0000
Commit message:
ver1 unfixed bug;

Changed in this revision

PowerMon.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r fbbd04cdb029 PowerMon.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PowerMon.lib	Fri Jun 15 02:46:31 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/sippasaeng/code/PowerMonlib2/#7a6a568c5c34
diff -r 000000000000 -r fbbd04cdb029 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Jun 15 02:46:31 2018 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+#include "PowerMon.h"
+
+Serial pc(USBTX, USBRX);  // tx, rx
+
+int main() {
+    
+   powerMon pm1(-1);
+ while(1)
+ {
+        wait(0.125);
+
+
+pc.printf("V_Source = %f\n", pm1.V_Source());
+//pc.printf("V_Sense = %f\n", pm1.V_Sense());
+pc.printf("Current = %f\n", pm1.Current());
+//pc.printf("Power_R = %d\n", pm1.Power_Ratio());
+pc.printf("Power = %f\n", pm1.Power());
+}
+
+
+    
+}
\ No newline at end of file
diff -r 000000000000 -r fbbd04cdb029 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Jun 15 02:46:31 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/5571c4ff569f
\ No newline at end of file