Mike S
/
mbed-os-example-blinky
1
Fork of mbed-os-example-mbed5-blinky by
Diff: main.cpp
- Revision:
- 11:dbc30f86f123
- Parent:
- 8:bb09890333fe
diff -r c4bec1c9b715 -r dbc30f86f123 main.cpp --- a/main.cpp Sat Aug 20 00:00:05 2016 +0100 +++ b/main.cpp Fri Aug 26 07:19:07 2016 +0000 @@ -2,12 +2,13 @@ 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); + Thread::wait(1500); } }