OK, here's a copy of my library...hope somebody finds it useful!http://www.artlum.com/arduino/tinytlc.html
#if defined (__AVR_ATtiny85__) || (__AVR_ATtiny84__)
well, i tried it and it worked very well: http://www.youtube.com/watch?v=3Br7PhvEIF0thank you for sharing it!
i had some problems because you suggested not to use millis and delays, but i see that the problems are caused only by delays, so we can use millis and micros... we just need to do the update method very often, right?
i've a question, i'm not an expert of making libraries, but to make this library work in an attiny84 do i just need to add this line?Code: [Select]#if defined (__AVR_ATtiny85__) || (__AVR_ATtiny84__)or is there some register settings to do?thanks again
TCCR1 = 0;
#if defined (__AVR_ATtiny85__) TCCR1 = 0;#else TCCR1A = TCCR1B = 0;#endif
I don't think millis() will do anything useful. I turned off the hardware timer in setup() (if it's ticking then there's a bug!)Time spent in between calls to update() is time the LEDs aren't lit up. I think you'd have to do a lot before you notice them get visibly dimmer, but bear it in mind.
#define TIME 100..._time=millis();while(millis()- _time < TIME) tlc5940.update();
I just tried it and there's a line in setup() that doesn't compile. The line is:Code: [Select] TCCR1 = 0;It should work if you replace that line with:Code: [Select]#if defined (__AVR_ATtiny85__) TCCR1 = 0;#else TCCR1A = TCCR1B = 0;#endifok thank you, after i'll try that if i've time