Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
okano
Date:
Wed Dec 08 02:06:06 2010 +0000
Parent:
0:828a93c038cd
Commit message:
rev0.51: Document modification and small change in main() function

Changed in this revision

LED_Cube444.lib Show annotated file Show diff for this revision Revisions of this file
LED_Cube444_demo.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 828a93c038cd -r 90dd1edfce17 LED_Cube444.lib
--- a/LED_Cube444.lib	Thu Oct 14 23:57:36 2010 +0000
+++ b/LED_Cube444.lib	Wed Dec 08 02:06:06 2010 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/okano/code/LED_Cube444/#6c57a47e2079
+http://mbed.org/users/okano/code/LED_Cube444/#86d2cad72832
diff -r 828a93c038cd -r 90dd1edfce17 LED_Cube444_demo.cpp
--- a/LED_Cube444_demo.cpp	Thu Oct 14 23:57:36 2010 +0000
+++ b/LED_Cube444_demo.cpp	Wed Dec 08 02:06:06 2010 +0000
@@ -1,5 +1,9 @@
 /** mbeduino demo code (with 4x4x4 LED Cube shield)
  *
+ *  @class   LED_Cube444
+ *  @author  Tedd OKANO
+ *  @version 0.51(08-Dec-2010)
+ *   
  *      This is a very simple demo code of mbeduino + 4x4x4 LED Cube shield
  *
  *      mbeduino              = http://mbed.org/users/okini3939/notebook/mbeduino/  (Japanese)
@@ -7,7 +11,8 @@
  *
  *      Released under the MIT License: http://mbed.org/license/mit
  *
- *      revision 0.5  15-Oct-2010   1st release
+ *      revision 0.5   15-Oct-2010   1st release
+ *      revision 0.51  08-Dec-2010   Document reformatted / small modification on main function
  */
 
 #include "mbed.h"
@@ -17,6 +22,20 @@
 
 int main() {
 
+    cube.set_bits( 0, 0xA5A5 );
+    cube.set_bits( 1, 0x5A5A );
+    cube.set_bits( 2, 0xA5A5 );
+    cube.set_bits( 3, 0x5A5A );
+    wait( 0.5 );
+    
+    cube.set_bits( 0, 0x5A5A );
+    cube.set_bits( 1, 0xA5A5 );
+    cube.set_bits( 2, 0x5A5A );
+    cube.set_bits( 3, 0xA5A5 );
+    wait( 0.5 );
+
+    cube.clear();
+
     int v   = 1;
 
     while ( 1 ) {