ATtiny85 + TLC5940

funkyguy4000:
Whoa ?R, are those 2pin rgb fade leds or are those 4 pin rgb terminated leds? They look to only have 2 pins.

they are RGB LEDs with common anode, 4 pins, they are controlled by 3 TLC's

about the tiny84, i'm trying it, but i think there is a problem with the port mapping, because in the tiny85 you set the pin PB0, PB1 and and PB2 but in attiny84 should be PA6 PA5 and PA4, do you agree with me? or am i wrong?

i modified this part and it compiles:

#if defined (__AVR_ATtiny85__) || (__AVR_ATtiny84__)
/*------------------------------------------------------------------------
  Configuration
------------------------------------------------------------------------*/
// How many TLC chips are attached. Each chip needs 32 bytes of RAM.
// The ATtiny85 only has 512 bytes of RAM and you need some left over
// for the rest of your program. Do the math...
#ifndef NUM_TLC5940s
#define NUM_TLC5940s 3
#endif

/*------------------------------------------------------------------------
  Pin assignments
------------------------------------------------------------------------*/
// You could move the BLANK_XLAT_PIN if you wanted to
// but the USI pins are fixed.
#if defined (__AVR_ATtiny85__)
#define BLANK_XLAT_PIN PB0
#define USI_OUT_PIN PB1
#define USI_CLK_PIN PB2
#else
#define BLANK_XLAT_PIN PA6
#define USI_OUT_PIN PA5
#define USI_CLK_PIN PA4
#endif

after i'll try the hardware, but i think that with those modifications that library can be called "Tiny_TLC5940" :slight_smile:
what do you think about? am i wrong?