Library for Sure Electronics HT1632 based LED matrix displays. Supports multiple displays connected together.

Dependents:   HT1632MsgScroller SMS_LEDMatrixPrinter

Files at this revision

API Documentation at this revision

Comitter:
SomeRandomBloke
Date:
Wed Nov 28 16:46:44 2012 +0000
Parent:
9:8a3c981babd9
Child:
11:0fac71b7ec1d
Commit message:
updates

Changed in this revision

HT1632_LedMatrix.cpp Show annotated file Show diff for this revision Revisions of this file
HT1632_LedMatrix.h Show annotated file Show diff for this revision Revisions of this file
--- a/HT1632_LedMatrix.cpp	Wed Nov 28 14:03:35 2012 +0000
+++ b/HT1632_LedMatrix.cpp	Wed Nov 28 16:46:44 2012 +0000
@@ -119,7 +119,7 @@
     numYDevices = yDevices;
     numDevices = numXDevices * numYDevices;
 
-    if( displayType == HT1632_24x16 ) {
+    if( displayType == HT1632_16x24 ) {
         displayWidth = 24;
         displayHeight = 16;
     } else {
@@ -141,7 +141,7 @@
         sendcmd(chipno, HT1632_CMD_BLOFF);    // Blink Off 
         sendcmd(chipno, HT1632_CMD_MSTMD);    // Master Mode 
         sendcmd(chipno, HT1632_CMD_RCCLK);    // Internal Oscillator
-        if( displayType == HT1632_24x16 ) {
+        if( displayType == HT1632_16x24 ) {
 // TODO - check
             sendcmd(chipno, HT1632_CMD_COMS10);  // 16*24, NMOS drivers
         } else {    
--- a/HT1632_LedMatrix.h	Wed Nov 28 14:03:35 2012 +0000
+++ b/HT1632_LedMatrix.h	Wed Nov 28 16:46:44 2012 +0000
@@ -51,8 +51,8 @@
 #define USE_GRAPHIC
 
 // Defines for display sizes
-#define HT1632_32x08  1 
-#define HT1632_24x16  2
+#define HT1632_08x32  1 
+#define HT1632_16x24  2
 
 /*
  * commands written to the chip consist of a 3 bit "ID", followed by
@@ -157,7 +157,7 @@
      * @param Number of vertical displays, max 4
      * @param Type of displays being used, either 32x8 or 24x16
      */
-    void init( uint8_t, uint8_t, uint8_t displayType = HT1632_32x08 );
+    void init( uint8_t, uint8_t, uint8_t displayType = HT1632_08x32 );
     
     /** Turn off the display
      */