1/2 second LED chaser

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
rharding64
Date:
Sun Aug 01 18:15:21 2021 +0000
Parent:
5:e6786b76dcbd
Commit message:
test half second led chaser

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Aug 01 18:11:47 2021 +0000
+++ b/main.cpp	Sun Aug 01 18:15:21 2021 +0000
@@ -16,24 +16,24 @@
         myled3 = 0;
         myled4 = 0;
         
-        wait(1.0); //1 sec wait time
+        wait(0.5); //1 sec wait time
         myled1 = 0;
         myled2 = 1; //2nd from left LED turns ON, rest off
         myled3 = 0;
         myled4 = 0;
 
-        wait(1.0);
+        wait(0.5);
         myled1 = 0;
         myled2 = 0;
         myled3 = 1; //3rd from left LED turns ON, rest off
         myled4 = 0;
         
-        wait(1.0);
+        wait(0.5);
         myled1 = 0;
         myled2 = 0;
         myled3 = 0;
         myled4 = 1; //4th from left (right most) LED turns ON, rest off
-        wait(1.0);
+        wait(0.5);
        
     }
 }