Mike S
/
mbed-os-example-blinky
1
Fork of mbed-os-example-mbed5-blinky by
Revision 11:dbc30f86f123, committed 2016-08-26
- Comitter:
- mike_s
- Date:
- Fri Aug 26 07:19:07 2016 +0000
- Parent:
- 10:c4bec1c9b715
- Commit message:
- 1
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
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); } }