Led flashing Hello World

Dependencies:   mbed

main.cpp

Committer:
srk
Date:
2012-12-26
Revision:
0:08da40b1c4a2

File content as of revision 0:08da40b1c4a2:

#include "mbed.h"

DigitalOut myled(LED1);

int main() {
    while(1) {
        myled = 1;
        wait(0.2);
        myled = 0;
        wait(0.2);
        myled = 1;
        wait(0.5);
        myled = 0;
        wait(0.5);    
    }
}