Akizuki LED Matrix Sample program 8 (using class library)

Dependencies:   AkiLedMatrix mbed

Files at this revision

API Documentation at this revision

Comitter:
kanpapa
Date:
Sat Jun 22 22:56:26 2013 +0000
Parent:
1:ba5bbc21a165
Commit message:
1st Release.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Jun 09 14:35:59 2013 +0000
+++ b/main.cpp	Sat Jun 22 22:56:26 2013 +0000
@@ -1,5 +1,5 @@
 //
-// AKI_LEDMATRIX_Sample 8 (using class library)
+// Akizuki LED Matrix Sample program 8 (using class library)
 //
 
 #include "mbed.h"
@@ -26,22 +26,24 @@
 
 int main() {
     unsigned char buffer[] = {
-    0xff,0xff,0xff,0xff, 0x00,0x00,0x00,0x00, // D15
-    0xff,0xff,0xff,0xff, 0x00,0x00,0x00,0x00, // D14
-    0xff,0xff,0xff,0xff, 0x00,0x00,0x00,0x00, // D13
-    0xff,0xe7,0xff,0xfc, 0x00,0x18,0x00,0x03, // D12
-    0xff,0xe7,0xff,0xfc, 0x00,0x18,0x00,0x03, // D11
-    0xff,0xe7,0xff,0xfc, 0x00,0x18,0x00,0x03, // D10
-    0x44,0x60,0xe0,0xe0, 0xbb,0x9f,0x1f,0x1f, // D9
-    0x00,0x20,0x40,0x40, 0xff,0xdf,0xbf,0xbf, // D8
-    0x33,0x26,0x4e,0x4c, 0xcc,0xd9,0xb1,0xb3, // D7
-    0x33,0x26,0x40,0x4c, 0xcc,0xd9,0xbf,0xb3, // D6
-    0x33,0x26,0x4f,0xcc, 0xcc,0xd9,0xb0,0x33, // D5
-    0x33,0x20,0x60,0xc0, 0xcc,0xdf,0x9f,0x3f, // D4
-    0x33,0x28,0xf1,0xe4, 0xcc,0xd7,0x0e,0x1b, // D3
-    0xff,0xff,0xff,0xff, 0x00,0x00,0x00,0x00, // D2
-    0xff,0xff,0xff,0xff, 0x00,0x00,0x00,0x00, // D1
-    0xff,0xff,0xff,0xff, 0x00,0x00,0x00,0x00}; // D0
+    //      UNIT1                 UNIT2
+    // LED1       LED2       LED1       LED2
+    0xff,0xff, 0xff,0xff, 0x00,0x00, 0x00,0x00, // D15
+    0xff,0xff, 0xff,0xff, 0x00,0x00, 0x00,0x00, // D14
+    0xff,0xff, 0xff,0xff, 0x00,0x00, 0x00,0x00, // D13
+    0xff,0xe7, 0xff,0xfc, 0x00,0x18, 0x00,0x03, // D12
+    0xff,0xe7, 0xff,0xfc, 0x00,0x18, 0x00,0x03, // D11
+    0xff,0xe7, 0xff,0xfc, 0x00,0x18, 0x00,0x03, // D10
+    0x44,0x60, 0xe0,0xe0, 0xbb,0x9f, 0x1f,0x1f, // D9
+    0x00,0x20, 0x40,0x40, 0xff,0xdf, 0xbf,0xbf, // D8
+    0x33,0x26, 0x4e,0x4c, 0xcc,0xd9, 0xb1,0xb3, // D7
+    0x33,0x26, 0x40,0x4c, 0xcc,0xd9, 0xbf,0xb3, // D6
+    0x33,0x26, 0x4f,0xcc, 0xcc,0xd9, 0xb0,0x33, // D5
+    0x33,0x20, 0x60,0xc0, 0xcc,0xdf, 0x9f,0x3f, // D4
+    0x33,0x28, 0xf1,0xe4, 0xcc,0xd7, 0x0e,0x1b, // D3
+    0xff,0xff, 0xff,0xff, 0x00,0x00, 0x00,0x00, // D2
+    0xff,0xff, 0xff,0xff, 0x00,0x00, 0x00,0x00, // D1
+    0xff,0xff, 0xff,0xff, 0x00,0x00, 0x00,0x00}; // D0
 
     while(1){
        ledmatrix.display(buffer);