Fork of https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky/

main.cpp

Committer:
kadonotakashi
Date:
2017-12-04
Revision:
44:4ebd764e1db9
Parent:
43:a01dfbb75230
Child:
45:f730263c5ce1

File content as of revision 44:4ebd764e1db9:

#include "mbed.h"

DigitalOut led1(LED1);

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