Hi. all! I'm using acleone's library version 005. Generally it works so fine, Thanx to Acleone. But when I connected 11th TLC5940 to my daisy chain, the whole chain didn't work at all. First I thought it was because of my wiring mistake - but wasn't. So I tested the example code that I used with another Arduino board which wasn't connected to anything but USB for serial comm.
#include <TLC5940LED.h>
#define NUM_TLCS 11
int counter = 0;
void setup()
{
Tlc.init(NUM_TLCS);
Tlc.resetTimers();
Serial.begin(115200);
}
void loop()
{
counter++;
Serial.print(counter); Serial.print("_");
for (uint8_t channel = 1; channel <= NUM_TLCS * 16; channel++) {
// Tlc.set(channel, value (0-4095)) this requires a Tlc.update() to set the values.
Tlc.set(channel, 4095);
Tlc.update();
delay(30);
}
Tlc.clear(); // sets all the channels to zero, but doesn't update
}
This code sends back signal to IDE everytime it loops. It works perfectly until NUM_TLCS <= 10. When NUM_TLCS is 11 or 12 or more, it just doesn't work at all... hmm..
Anybody had an idea??