First Program

Dependencies:   mbed

main.cpp

Committer:
monpjc
Date:
2010-10-12
Revision:
0:a8a5e8ffc316

File content as of revision 0:a8a5e8ffc316:

#include "mbed.h"

DigitalOut myled(LED2);

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