Darron Nielsen
/
hello
just a test of how things work
main.cpp
- Committer:
- nielsen8
- Date:
- 2010-11-02
- Revision:
- 2:cc5c85f21919
- Parent:
- 1:8c176d51adad
File content as of revision 2:cc5c85f21919:
#include "mbed.h" DigitalOut myled(LED1); Timer t; /** hello the traditional first program that many people learn. * * look we not try to really do anything we just starting out * * * * */ 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(); } }