a

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
12f2029h
Date:
Tue Jun 03 06:06:24 2014 +0000
Parent:
0:fe474623a244
Commit message:
p;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r fe474623a244 -r 7afe390ddda9 main.cpp
--- a/main.cpp	Mon Jun 02 07:14:01 2014 +0000
+++ b/main.cpp	Tue Jun 03 06:06:24 2014 +0000
@@ -4,14 +4,6 @@
  
 int main() {
     while(1) {
-        leds = 0xff;
-        wait(0.2);
-        leds = 0x00;
-         wait(0.2);
-        leds = 0xff;
-         wait(0.2);
-        leds = 0x00;
-        wait(0.2);
         leds = 0x80;
         wait(0.2);
         leds = 0x40;
@@ -38,6 +30,70 @@
          wait(0.2);
         leds = 0x10;
         wait(0.2);
+        leds = 0x20;
+        wait(0.2);
+        leds = 0x40;
+        wait(0.2);
+        leds = 0x80;
+        wait(0.2);
+        leds = 0xc0;
+        wait(0.2);
+        leds = 0x60;
+        wait(0.2);
+        leds = 0x30;
+        wait(0.2);
+        leds = 0x18;
+        wait(0.2);
+        leds = 0x0c;
+        wait(0.2);
+        leds = 0x06;
+        wait(0.2);
+        leds = 0x03;
+        wait(0.2);
+        leds = 0x01;
+        wait(0.2);
+        leds = 0x03;
+        wait(0.2);
+        leds = 0x06;
+        wait(0.2);
+        leds = 0x0c;
+        wait(0.2);
+        leds = 0x18;
+        wait(0.2);
+        leds = 0x30;
+        wait(0.2);
+        leds = 0x60;
+        wait(0.2);
+        leds = 0xc0;
+        wait(0.2);
+        leds = 0xe0;
+        wait(0.2);
+        leds = 0x70;
+        wait(0.2);
+        leds = 0x38;
+        wait(0.2);
+        leds = 0x1c;
+        wait(0.2);
+        leds = 0x0e;
+        wait(0.2);
+        leds = 0x07;
+        wait(0.2);
+        leds = 0x1c;
+        wait(0.2);
+        leds = 0x38;
+        wait(0.2);
+        leds = 0x70;
+        wait(0.2);
+        leds = 0xe0;
+        wait(0.2); 
+         leds = 0xff;
+        wait(0.2);
+        leds = 0x00;
+         wait(0.2);
+        leds = 0xff;
+         wait(0.2);
+        leds = 0x00;
+        wait(0.2);
         leds = 0x81;
          wait(0.2);
         leds = 0x42;