I am trying to control a dual-color 8x80 LED display.
I have 10 8x8 (common anode) LED matrices and i plan to run the columns with 10 74HC595 shift registers (and the 16 rows [8 red, 8 green] with 2 more shift registers)
The way my code currently works, it has stored a 2-dimensional array of bits representing which LEDs should be on and off. so if it were displaying a checkerboard pattern, the array would look like this:
bit MyArray[8][80]=
{
{1,0,1,0,1,0,1,0,1,0,1...},
{0,1,0,1,0,1,0,1,0,1,0...},
{1,0,1,0,1,0,1,0,1,0,1...},
{0,1,0,1,0,1,0,1,0,1,0...},
{1,0,1,0,1,0,1,0,1,0,1...},
{0,1,0,1,0,1,0,1,0,1,0...},
{1,0,1,0,1,0,1,0,1,0,1...},
{0,1,0,1,0,1,0,1,0,1,0...}
};
How do i send each row to the shift registers? using ShiftOut, i could only find how to send 8 bits at a time in Decimal or Hex. I'm looking for a simple way to just send the binary.
is there a way to do something like this:
For int x = 80 to 1 x--
ShiftOut(DataPin, ClockPin, MyArray[row][x]
next x
any suggestions on how to do this, or other project help in general would be greatly appreciated.