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
Diff: main.cpp
- Revision:
- 17:8a3e2ad3e409
- Parent:
- 8:bb09890333fe
diff -r 71f51c703eee -r 8a3e2ad3e409 main.cpp
--- 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);
}
}
