Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-os-example-mbed5-blinky by
Revision 17:8a3e2ad3e409, committed 2016-11-01
- Comitter:
- piercalderan
- Date:
- Tue Nov 01 07:58:48 2016 +0000
- Parent:
- 16:71f51c703eee
- Commit message:
- blink D11
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Oct 28 13:15:03 2016 +0100 +++ b/main.cpp Tue Nov 01 07:58:48 2016 +0000 @@ -1,13 +1,13 @@ #include "mbed.h" -DigitalOut led1(LED1); +DigitalOut led1(D11); // 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); + wait(0.5); } }