led test fork

Dependencies:   mbed

Fork of mbed_blinky by kirthiga annamalai

Files at this revision

API Documentation at this revision

Comitter:
kirthigaannamalai
Date:
Mon Jan 12 09:24:56 2015 +0000
Parent:
3:e075f4f361c8
Commit message:
new blinking pattern

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Jan 12 09:12:20 2015 +0000
+++ b/main.cpp	Mon Jan 12 09:24:56 2015 +0000
@@ -4,12 +4,11 @@
 DigitalOut myled2(LED2);
 
 int main() {
+    int 1=0;
     while(1) {
-        myled = 1;
-        myled2=0;
-        wait(0.5);
-        myled = 0;
-        myled2=1;
-        wait(0.5);
+        myled = 1&1;
+        myled2=1&2;
+        wait(0.25);
+        i++;
     }
 }