operational with OS5

main.cpp

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

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);
    }
}