LED test fork

Dependencies:   mbed

Fork of led_test2 by -deleted-

Files at this revision

API Documentation at this revision

Comitter:
wm
Date:
Fri Aug 09 11:54:49 2013 +0000
Parent:
1:32f34ee5f90f
Commit message:
new blinking pattern

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 32f34ee5f90f -r 47097a6f33ab main.cpp
--- a/main.cpp	Thu Aug 08 14:19:54 2013 +0000
+++ b/main.cpp	Fri Aug 09 11:54:49 2013 +0000
@@ -4,12 +4,10 @@
 DigitalOut myled2(LED2);
 
 int main() {
+    int i = 0;
     while(1) {
-        myled = 1;
-        myled2 = 0;
-        wait(0.5);
-        myled = 0;
-        myled2 = 1;
-        wait(0.5);
+        myled = i & 1;
+        myled2 = i & 2;
+        wait(0.25);
     }
 }