LED hello world

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Darkblue38
Date:
Tue Jun 06 05:30:53 2017 +0000
Parent:
0:25707ffe0d6d
Commit message:
slowdown blink rate

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Jun 06 05:28:50 2017 +0000
+++ b/main.cpp	Tue Jun 06 05:30:53 2017 +0000
@@ -7,9 +7,9 @@
     while(1) {
         myled = 1; // LED is ON
         myled2 = 0;
-        wait(0.2); // 200 ms
+        wait(0.5);// 200 ms
         myled = 0; // LED is OFF
         myled2 = 1;
-        wait(1.0); // 1 sec
+        wait(0.5); 1 sec
     }
 }