copy of mbed-os-example-blinky

main.cpp

Committer:
tulanthoar
Date:
2017-04-27
Revision:
1:5127448aa699
Parent:
0:ea82a5a12af4

File content as of revision 1:5127448aa699:

#include "mbed.h"

DigitalOut led1(LED3);

// main() runs in its own thread in the OS
int main() {
    while (true) {
        led1 = !led1;
        wait(0.5);
    }
}