Darron Nielsen
/
hello
just a test of how things work
Diff: main.cpp
- Revision:
- 0:f7b01dcd55c7
- Child:
- 1:8c176d51adad
diff -r 000000000000 -r f7b01dcd55c7 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Nov 02 22:26:42 2010 +0000 @@ -0,0 +1,19 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +Timer t; + + +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(); + } +}