First mbed program example and usage

Dependencies:   mbed

Fork of HelloWorld by Simon Ford

main.cpp

Committer:
simon
Date:
2011-01-16
Revision:
0:fb6bbc10ffa0
Child:
2:9debb94a4c8c

File content as of revision 0:fb6bbc10ffa0:

#include "mbed.h"

DigitalOut myled(LED1);

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