Attiny85 and TLC5940's

Seeing as how the atmega328 is a atmel and the Attiny is from atmel as well i figured here would be the best place to ask. The library for the TLC5940, would that work as is with the Attiny85? I need to run 2 TLC5940s and i'm looking for the smallest option.

-thankS!

They act as shift registers and can be cascaded (see Figure 12 of the datasheet) so you can connect more then one to a single SPI port or use shiftOut() to implement Software SPI on any three data pins.

It's not clear what you mean by "the library for the TLC5940". The chip is easy enough to use that you shouldn't need a library.

There is an arduino library for the TLC5940's and i wanted to know if that would port over from the avr atmega to the avr attiny. What acts like shift registers? Attiny or TLC

It's the TLC that acts like a shift register.

So i would need to get used to using the ShiftOut command eh?

How would i make the ShiftOut command work like the TLC5940 Library addFade command and updateFades

the addFade is usually addFade(channel, start value, max value, start millis, end millis);

how would the shift out work like that?

So I'm confused still, I've researched it and all. I can't figure out how to control the TLC5940 with the ATtiny without a library.

I'm not at the point to where i can look at a datasheet for a microcontroller and then program it to tell it how to control a driver, anybody wanna help out?

anybody?

It is possible that the TLC5940 library you want to use will work on the ATtiny85. I recommend you get your program working on the Arduino UNO first. Once it is working there you can worry about porting it to the smaller chip (1/4 the program space and 1/4 the RAM space).

Is there some reason why you must port it to the ATtiny85?

I have little space on the project board and I may need to add some caps for the project to work, those caps have no room on the board with the atmega.