pier calderan / Mbed OS mbed-os-example-blinkyD11

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Files at this revision

API Documentation at this revision

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);
     }
 }