just a test of how things work

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 DigitalOut myled(LED1);
00004 Timer t;
00005 /** hello the traditional first program that many people learn.
00006  * 
00007  * look we not try to really do anything we just starting out
00008  * 
00009  *
00010  * 
00011  * 
00012  */
00013 
00014 int main() {
00015     while (1) {
00016         myled = 1;
00017         wait(0.2);
00018         myled = 0;
00019         wait(0.2);
00020         t.start();
00021         printf("Hello World!\r\n");
00022         t.stop();
00023         printf("The time taken was %f seconds \n", t.read());
00024         t.reset();
00025     }
00026 }