Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: test.cpp
- Revision:
- 1:c4b60ff5a79a
- Parent:
- 0:0da7dd3ebad8
--- 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);
+}