This is the software for running the Power Management Circuit Board

Dependencies:   PCA9555 mbed

main.cpp

Committer:
rvasquez6089
Date:
2017-01-30
Revision:
0:72aef1a2a084

File content as of revision 0:72aef1a2a084:

#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;
  }
}