Prototype for an ECE 395 Project

Dependencies:   MPU6050 mbed

Fork of HelloWorld by Simon Ford

main.cpp

Committer:
mikeyling18
Date:
2014-11-19
Revision:
2:d0fab6ea5f45
Parent:
0:fb6bbc10ffa0

File content as of revision 2:d0fab6ea5f45:

#include "mbed.h"
#include "MPU6050.h"

Serial pc(USBTX, USBRX); // tx, rx
 
DigitalOut myled1(LED1);
DigitalOut myled2(LED2); 
DigitalOut myled3(LED3);
DigitalOut myled4(LED4); 

int main() {
    while(1) {
        myled1 = 1;
        pc.printf("On!\n");
        wait(1);
        myled1 = 0;
        pc.printf("Off!\n");
        wait(1);
    }
}