Akizuki 32x16 dot LED Matrix unit (K-03735) control library.

秋月電子の32×16ドットLEDマトリクス表示装置(K-03735)を制御するライブラリです。
バッファの内容をそのままLEDマトリクス装置に送ります。
LEDマトリクス表示装置は最大4台まで接続できるので、接続台数を必ず指定してください。(この台数でバッファのサイズを計算しています。)
行間表示は1msのdelayを入れています。パラメタで変更可能です。
このライブラリの呼び出し元は基本的にwhile()でループしてください。
初めてのライブラリなのでメンバ関数もドキュメントとかまだ最低限です。
おかしなところはぜひコメントをください。

表示例は以下ページをご覧ください。

Revision:
7:2daedb892e15
Parent:
5:c055674c4a0b
Child:
8:6afa319e06e8
--- a/akiledmatrix.h	Sun Jun 09 05:58:08 2013 +0000
+++ b/akiledmatrix.h	Sun Jun 09 12:23:33 2013 +0000
@@ -24,11 +24,11 @@
  * // 9 GND
  * // 10 GND
  *
- * // ledunit = 8
+ * // rowsize = 4
  * // dynamic_delay = 1000
  * // scroll_delay = 50
  *
- * AkiLedMatrix ledmatrix(p5, p6, p7, p8, p9, p10, 1, 1000, 50);
+ * AkiLedMatrix ledmatrix(p5, p6, p7, p8, p9, p10, 4, 1000, 50);
  * 
  * int main() {
  *    const unsigned char buf[] = {
@@ -65,7 +65,7 @@
      * @param clock CLOCK IN
      * @param latch LATCH IN
      * @param strobe STROBE IN
-     * @param ledunit Number of LED units
+     * @param rowsize LED buffer row size
      * @param delay Dynamic display delay in microseconds
      * @param shift_count_init scroll timing 
      */
@@ -75,7 +75,7 @@
                  PinName clock,
                  PinName latch,
                  PinName strobe,
-                 const int ledunit,
+                 const int rowsize,
                  const int delay,
                  const int shift_count_init);
                                   
@@ -87,14 +87,14 @@
      */
     void display(unsigned char *buffer);
 
-    /** Get LED unit number
+    /** Get row size
      *
      * @param
      *        void
      * @returns
-     *        number of LED units
+     *        LED buffer row size
      */
-    int getLedunit();
+    int getrowsize();
  
 private:
     /** bit left shift
@@ -108,7 +108,7 @@
     void bitshift(unsigned char *array, int xsize);
 
     DigitalOut _sin1,_sin2,_sin3,_clock,_latch,_strobe;
-    const int _ledunit;
+    const int _rowsize;
     const int _delay;
     const int _shift_count_init;
     int shift_count;