Missouri S&T IEEE Robotics Team
/
PowerManagementBoard_Rev_A_2017
This is the software for running the Power Management Circuit Board
Diff: main.cpp
- Revision:
- 0:72aef1a2a084
--- /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