takahiro ishikawa / Mbed 2 deprecated ledtest

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
daihuku
Date:
Tue Jul 01 09:14:32 2014 +0000
Parent:
0:0da7dd3ebad8
Commit message:
s;

Changed in this revision

test.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/test.cpp	Tue Jul 01 08:57:50 2014 +0000
+++ b/test.cpp	Tue Jul 01 09:14:32 2014 +0000
@@ -6,6 +6,7 @@
 void all();
 void rotate();
 void takahiro();
+void takahiro2();
 
 int main()
 {
@@ -19,7 +20,7 @@
         rotate();
         rotate();
         takahiro();
-        takahiro();    
+        takahiro2();    
     }
 }
 
@@ -31,9 +32,9 @@
 void all()
 {
     leds = 0xff;
-    wait(7);
+    wait(0.2);
     leds = 0x00;
-    wait(1);
+    wait(0.2);
 }
 
 
@@ -43,9 +44,27 @@
     for(bitt = 0x00; bitt < 10; bitt++)
     {
         leds = 1 << bitt;
-        wait(1);
+        wait(0.2);
     }
 }
 void takahiro()
 {
-    }
\ No newline at end of file
+    int bitt;
+    for(bitt = 0x00; bitt < 10; bitt++)
+    {
+        leds = 0x80 >> bitt;
+        wait(0.2);
+    }
+}
+
+void takahiro2()
+{
+   leds = 0x18;
+   wait(0.5);
+   leds = 0x24;
+   wait(0.5);
+   leds = 0x42;
+   wait(0.5);
+   leds = 0x81;
+   wait(0.5);
+}