mbed-os5

Fork of mbed-os-example-blinky by richard misi

main.cpp

Committer:
RCMISbed
Date:
2018-08-30
Revision:
76:0d9524062816
Parent:
29:0b58d21e87d6
Child:
77:d67966bc6494

File content as of revision 76:0d9524062816:

#include "mbed.h"

DigitalOut led(LED4);
DigitalOut son(p8);


// main() runs in its own thread in the OS
int main() {
    son= 0;
    while (true) {
        led = 1;
        wait(0.05);
        led = 0;
        wait(0.9);
    }
}