.

Dependencies:   mbed

main.cpp

Committer:
Anonymous
Date:
2014-07-08
Revision:
0:1eec1438dc44

File content as of revision 0:1eec1438dc44:

#include "mbed.h"

DigitalOut myled(LED1);

int main() {
    while(1) {
        myled = 1; // LED is ON
        wait(0.5); // 200 ms
        myled = 0; // LED is OFF
        wait(0.5); // 1 sec
    }
}