first try on RTOS mbed OS, Blinking LED
Dependencies: mbed-dev mbed-rtos
Fork of rtos_basic by
Diff: main.cpp
- Revision:
- 11:4fbd6b12906e
- Parent:
- 10:dc33cd3f4eb9
--- a/main.cpp Thu Jan 12 23:35:40 2017 +0000 +++ b/main.cpp Sun Mar 19 17:16:46 2017 +0000 @@ -1,9 +1,11 @@ #include "mbed.h" +#include "Thread.h" DigitalOut led1(LED1); DigitalOut led2(LED2); +using namespace rtos; Thread thread; - + void led2_thread() { while (true) { led2 = !led2;