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:
Sat Nov 24 21:58:03 2012 +0000
Parent:
6:80f554fd77a0
Child:
9:8a3c981babd9
Commit message:
Updates for latest displays

Changed in this revision

HT1632_LedMatrix.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;
 }