Hi all,
I'm just starting playing with a 8x8 red led matrix that I got, my first attempt was somehow successful, but was using all my arduino pins.
So I'm now trying to use a TLC5940 to control the matrix and keep some pins free on the arduino... But it doesn't work!
For the first attempt (without TLC5940), I've just followed the RowColumnScanning tutorial (http://arduino.cc/en/Tutorial/RowColumnScanning), got it working fast, I just add to revert column 4 and column 6 pins, to adapt to my matrix. (I don't have the datasheet of my matrix...), then setting first row to HIGH and first column to LOW was actually lighting my first LED.
Then, moving to TLC5940, I didn't found any simple project example to drive such a simple "one color matrix", but my idea was to use the 8 first outputs of the TLC5940 to set COLUMN values, and the 8 last outputs to set ROWS values in order to be able to control each LED individually. I thought that, using the TCL5940 library form here (Google Code Archive - Long-term storage for Google Code Project Hosting.), the following code would do the same effect as when using digitalWrite() in the first attempt:
Tlc.set(0, 0); // channel 0 is COL1
Tlc.set(8, 4095); // channel 8 is ROW1
Tlc.update();
=> it doesn't work
BUt I I put +5V directly on ROW1, and do Tlc.set(0, 4095), I get the light on first LED...
So I think I've not understood how it should work with the TLC5940....
Is it correct to think that I can control ROWS and COLUMNS with the 16 outputs of the TLC5940?
Then is it supposed to work using the .set() function, as when I was using the digitalWrite with arduino's outputs?
Does anyone as an example of such project?
Thanks a lot!
Cheers,
Michael