May be someone is interested to drive HT1632 chip from HOLTEK, very nice ic capable of matrix led driving.
The code is quite long to put here becouse it includes also a character generator for text display.
This is the base code to write serial data to chip:
...
void HT1632_writebits(byte bits, byte firstbit)
{
while (firstbit != 0)
{
pin_WR.Write(false); // = LOW;
if ((bits & firstbit) != 0)
{
pin_DATA.Write(true); // = HIGH;
}
else
{
pin_DATA.Write(false); // = LOW;
}
pin_WR.Write(true); //= HIGH;
firstbit >>= 1;
}
}
...
For entire code I’ll wait reopening of code section.