This is the software for running the Power Management Circuit Board

Dependencies:   PCA9555 mbed

Files at this revision

API Documentation at this revision

Comitter:
rvasquez6089
Date:
Mon Jan 30 17:31:18 2017 +0000
Commit message:
Not working at the moment

Changed in this revision

PCA9555.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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PCA9555.lib	Mon Jan 30 17:31:18 2017 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/Reiko/code/PCA9555/#8f59b7233e6c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Jan 30 17:31:18 2017 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+#include "PCA9555.h"
+//------------------------------------
+// Hyperterminal configuration
+// 9600 bauds, 8-bit data, no parity
+//------------------------------------
+
+Serial pc(PA_11, PA_12);
+ 
+DigitalOut myled(LED1);
+PCA9555 i2cex(PB_9,PB_8,PA_15,40); 
+DigitalOut EN33(PA_8);
+int main() {
+  int i = 1;
+  pc.printf("Hello World !\n");
+  i2cex.setPin(2);
+  while(1) { 
+      wait(1);
+      
+      pc.printf("This program runs since %d seconds.\n", i++);
+      //EN33 = !EN33;
+  }
+}
+ 
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Jan 30 17:31:18 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/ad3be0349dc5
\ No newline at end of file