led blink

Dependencies:   mbed FXOS8700Q

main.cpp

Committer:
ELISONSC
Date:
2019-05-23
Revision:
0:4371d5c6c2df

File content as of revision 0:4371d5c6c2df:

#include "mbed.h"

DigitalOut led1(LED1);

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