ver1 unfixed bug

Dependencies:   PowerMonlib2 mbed

Revision:
0:fbbd04cdb029
--- /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