test33

Dependencies:   mbed

main.cpp

Committer:
ManuelJoaquim
Date:
2014-03-29
Revision:
1:b6a407375dcc
Parent:
0:870b78bb0e3d
Child:
2:d4cec5b8d032

File content as of revision 1:b6a407375dcc:

#include "mbed.h"

DigitalOut myled(LED1);

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