Ömer Sakar
/
mbed-os-example-blinky6
Okz
Diff: main.cpp
- Revision:
- 0:f9e6c5692d8b
diff -r 000000000000 -r f9e6c5692d8b main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Sep 27 10:53:59 2016 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" + +DigitalOut led1(LED1); + +// main() runs in its own thread in the OS +// (note the calls to Thread::wait below for delays) +int main() { + while (true) { + led1 = !led1; + Thread::wait(500); + } +} +