Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: PowerMonlib2 mbed
Fork of TestPMLIB by
Revision 0:fbbd04cdb029, committed 2018-06-15
- Comitter:
- sippasaeng
- Date:
- Fri Jun 15 02:46:31 2018 +0000
- Child:
- 1:79b4bdf4997b
- Commit message:
- ver1 unfixed bug;
Changed in this revision
--- /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
--- /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
--- /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
