chase

Dependencies:   mbed

Fork of blink by Hari Prasad

Files at this revision

API Documentation at this revision

Comitter:
anbukumaran
Date:
Thu Jun 25 10:37:40 2015 +0000
Parent:
0:8fc185e0f112
Commit message:
chase

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 8fc185e0f112 -r 73da3e6133b7 main.cpp
--- a/main.cpp	Thu Jun 11 09:34:43 2015 +0000
+++ b/main.cpp	Thu Jun 25 10:37:40 2015 +0000
@@ -1,22 +1,29 @@
 #include "mbed.h"
-
 DigitalOut led1(LED1);
 DigitalOut led2(LED2);
 DigitalOut led3(LED3);
 DigitalOut led4(LED4);
+
 int main() {
     while(1) {
+        
         led1= 1;
         wait(0.2);
         led1 = 0,led2= 1;
         wait(0.2);
         led2= 0;
         led3= 1;
-        wait(0.2);
-        led3= 0;
+         wait(0.2);
+         led3=0;
         led4= 1;
         wait(0.2);
-        led4=0;
+        led4 = 0,led3=1;
         wait(0.2);
+        led3= 0;
+        led2= 1;
+        wait(0.2);
+        led2= 0;
+        led1= 1;
+        wait(0.2);       
     }
 }