Beatnik

beatnik_main.cpp

Committer:
Wahaj
Date:
2018-09-15
Revision:
1:86e26b586df4
Parent:
0:24b55a00fad7

File content as of revision 1:86e26b586df4:

#include "mbed.h"

DigitalOut led1(LED1);

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