test

Dependencies:   mbed

main.cpp

Committer:
SilentDawn
Date:
2019-07-02
Revision:
0:f012057a506a

File content as of revision 0:f012057a506a:

#include "mbed.h"

DigitalOut led(LED1);

int main()
{
    while(1) {
        led = 1; // LED is ON
        wait(2); // 200 ms
        led = 0; // LED is OFF
        wait(5); // 800 ms
    }
}