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 Workshop-1-Example-3 by
Revision 1:2c029f8a45c8, committed 2017-01-05
- Comitter:
- amaste01
- Date:
- Thu Jan 05 16:46:34 2017 +0000
- Parent:
- 0:04fa7fb0681e
- Commit message:
- Replace "Thread::wait" with "wait" and change ms to s
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Sep 26 16:14:45 2016 +0000
+++ b/main.cpp Thu Jan 05 16:46:34 2017 +0000
@@ -7,7 +7,7 @@
void led2_thread(void const *args) {
while (true) {
led2 = !led2;
- Thread::wait(1000);
+ wait(1);
}
}
@@ -18,6 +18,6 @@
while (true) {
led1 = !led1;
- Thread::wait(500);
+ wait(0.5);
}
}
\ No newline at end of file
