I was trying to get my LED matrix working again today, and stumbled upon a problem. I have two 74HC595 cascaded. The first one (to which I send the data) is the colum driver, the 2nd one is the row driver.
Usually when you run this code:
int latchPin = 8; //9->8
int dataPin = 11; //8->11
int clockPin = 12; //10->12
byte col = 0b10000000;
byte row = 0b10000000;
shiftOut(dataPin, clockPin, LSBFIRST, row);
shiftOut(dataPin, clockPin, MSBFIRST, col);
The LED is constantly lit, right?
Since when you sent the data and pulled latchPin up, the register remembers its bits and keeps outputting them constantly, right?
Well, I don't see it. It keeps flickering every second.
It never lights up constantly, I really have no clue what I am doing wrong, I have checked the schematics over 10 times, and can't see any mistake.
Note the everything works actually, I can address every row and colum as I should be able to, but somehow the outputs of the shift registers don't have continuous outputs... Is it possible that I broke something?