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

main.cpp

Committer:
mbed_official
Date:
23 months ago
Revision:
42:bcfaadc319d3
Parent:
32:0b58d21e87d6

File content as of revision 42:bcfaadc319d3:

#include "mbed.h"

DigitalOut led1(LED1);

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