Library for TLC5940 16-channel PWM chip

nphillips:

(unsigned long)      fadeDelay = millis() + random(5000, 15000);

The last parameter of Tlc.newFade is the start time in millis. v004 has proper commenting in the examples (sorry)!

Ah hah! I suppose if I paid closer attention to your example, too, it would have been obvious. (testfades002 is what I used to help construct my code)

Also, if you need to run more than 5 fades at once (if you call newFade more than 5 times before while(Tlc.updateFades());), you need to add more parameters to Tlc.init. For say 10 fades at once, use Tlc.init(1 tlc, 10 fades). Tlc.newFade(...) will return false if you have too many fades running at once.

Is there an upper bound to this? Rather, will it break if I try to have it run a boat-load of fades? (I may end up looking at 32+ LEDs for one project....)