Library for Sure Electronics HT1632 based LED matrix displays. Supports multiple displays connected together.
Dependents: HT1632MsgScroller SMS_LEDMatrixPrinter
Diff: HT1632_LedMatrix.cpp
- Revision:
- 10:af973a9c48b2
- Parent:
- 9:8a3c981babd9
- Child:
- 11:0fac71b7ec1d
--- 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 {