operational with OS 5

main.cpp

Committer:
billcooke51
Date:
2018-06-26
Revision:
66:0a43d8aeeb76
Parent:
29:0b58d21e87d6
Child:
67:f8847df1c93b

File content as of revision 66:0a43d8aeeb76:

#include "mbed.h"

DigitalOut led1(LED1);

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