Library for TLC5940 16-channel PWM chip

Fantastic documentation! :slight_smile:
Timing was perfect, I just wanted to solder, funny.

Right now my TLC is working with led's!
I Also managed to make a new code to
control the TLC with max/msp. So, thanks
for checking Acleone, I already made it.

But I do have a new problem. ( I hope it's not
too much off subject)
As you mentioned on the arduino playground,
you think it is possible to drive motors. I want
to control 12 lego motors (the new ones
from lego power tools). I bought six L298
ic's to make it possible to rotate eacht motor both
left and right.

The problem is, I just found out
the TLC chip doesn't send 5volt through the outs
but just gates the GND. And the L298 ic's need
5volt to make the motor turn. Do you or anybody else
know a solution for that?

Also, the L298 needs some diodes around the motor as you can see on
figure 6 on the datasheet http://www.st.com/stonline/books/pdf/docs/1773.pdf
Is it still needed to put a diode on every out of the TLC?

Jonb mentioned different speeds on his motors. Did you directly connect the motors on the TLC or are you using a separate power
supply with H-bridges or single transistors? I presume in the
last case this wouldn't be a problem as long as your second power
supply is capable of enough current...

Thanks for the great work on the TLC library's!