just a test of how things work

Dependencies:   mbed

main.cpp

Committer:
nielsen8
Date:
2010-11-02
Revision:
1:8c176d51adad
Parent:
0:f7b01dcd55c7
Child:
2:cc5c85f21919

File content as of revision 1:8c176d51adad:

#include "mbed.h"
//! @author Darron Nielsen 
//! @date today2010


DigitalOut myled(LED1);
Timer t;

/** hello the traditional first program that many people learn.
*/
int main() {
    while (1) {
        myled = 1;
        wait(0.2);
        myled = 0;
        wait(0.2);
        t.start();
        printf("Hello World!\r\n");
        t.stop();
        printf("The time taken was %f seconds \n", t.read());
        t.reset();
    }
}