Library for Sure Electronics HT1632 based LED matrix displays. Supports multiple displays connected together.
Dependents: HT1632MsgScroller SMS_LEDMatrixPrinter
Diff: HT1632_LedMatrix.cpp
- Revision:
- 8:61130f9b5b79
- Parent:
- 6:80f554fd77a0
- Child:
- 9:8a3c981babd9
--- a/HT1632_LedMatrix.cpp Tue Nov 20 13:08:43 2012 +0000 +++ b/HT1632_LedMatrix.cpp Sat Nov 24 21:58:03 2012 +0000 @@ -124,12 +124,15 @@ for (uint8_t chipno=0; chipno<4; chipno++) { chipfree(chipno); // unselect it - sendcmd(chipno, HT1632_CMD_SYSDIS); // Disable system - sendcmd(chipno, HT1632_CMD_COMS10); // 08*32, PMOS drivers - sendcmd(chipno, HT1632_CMD_MSTMD); // Master Mode - sendcmd(chipno, HT1632_CMD_SYSON); // System on - sendcmd(chipno, HT1632_CMD_LEDON); // LEDs on + + sendcmd(chipno, HT1632_CMD_SYSON); // System on + sendcmd(chipno, HT1632_CMD_LEDON); // LEDs on + sendcmd(chipno, HT1632_CMD_BLOFF); // Blink Off + sendcmd(chipno, HT1632_CMD_MSTMD); // Master Mode + sendcmd(chipno, HT1632_CMD_RCCLK); // Internal Oscillator + sendcmd(chipno, HT1632_CMD_COMS00); // 08*32, NMOS drivers sendcmd(chipno, HT1632_CMD_PWM | 0x0c); // PWM Duty + for (uint8_t i=0; i<96; i++) senddata(chipno, i, 0); // clear the display wait(0.1); @@ -163,11 +166,13 @@ ***********************************************************************/ void HT1632_LedMatrix::chipselect(uint8_t chipno) { +// for(int i=0; i<4; i++) ht1632_cs[chipno] = LOW; } void HT1632_LedMatrix::chipfree(uint8_t chipno) { +// for(int i=0; i<4; i++) ht1632_cs[chipno] = HIGH; }