Prova di fork del progetto mbed-os-example-blinky

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Test di forking

main.cpp

Committer:
maiorfi
Date:
2017-08-15
Revision:
44:92f1d5ca88f2
Parent:
29:0b58d21e87d6
Child:
45:89aa31abd1bc

File content as of revision 44:92f1d5ca88f2:

#include "mbed.h"

DigitalOut led1(LED1);

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