So… I bought two of this:http://linksprite.com/wiki/index.php5?title=LED_Matrix_Kit
And I have them connected like this:
WIRING --- MATRIX 1 (J1)
5V --- VCC
GND --- GND
PIN8 --- DIN
PIN9 --- CS
PIN10 --- CLK
MATRIX 1 (J2) --- MATRIX 2 (J1)
VCC --- VCC
GND --- GND
DOUT --- DIN
CS --- CS
CLK --- CLK
First I wanted to use the Matrix library but none of the examples worked (nothing happened) even if I connected just one Matrix.
Here is the code I was using (the website example changing the pins):
Matrix myMatrix = Matrix(8, 10, 9);
myMatrix.clear(); // clear display
// turn some pixels on
myMatrix.write(1, 5, HIGH);
myMatrix.write(2, 2, HIGH);
myMatrix.write(2, 6, HIGH);
myMatrix.write(3, 6, HIGH);
myMatrix.write(4, 6, HIGH);
myMatrix.write(5, 2, HIGH);
myMatrix.write(5, 6, HIGH);
myMatrix.write(6, 5, HIGH);
Then I tried the example code given by LinkSprite in their wiki (http://linksprite.com/wiki/index.php5?title=LED_Matrix_Kit
) and it worked. But both matrix showed me the same thing.
Can anyone help me by telling where how should I change the content of the second matrix?
Or giving me any ideas to get the Matrix library to work?
I'm adding a picture of my wiring.