Go Down

Topic: attiny 85, any pointers?/ (Read 21 times) previous topic - next topic

navidad

Hi there,

Would you mind sharing exactly how you got spi to work? I'm trying to do something similar (ATtiny84 with RF24 library), and I modified both libraries so that my program would compile but it is still not working. I am not getting a clock signal at the SCK pin so I suspect I am referring to the pins incorrectly in the modified SPI library.

Thanks!

winner10920

Here's the modified libraries, both the modified spi and the mirf modified to use the new spi
If you want to reuse the pins from spi you should be able to call spi85.end but I haven't tested that yet
Note that the mosi miso are opposite for the attiny85 so the mosi pin is being used as miso and vice versa, that's just the way the USI hardware is
this should also work with the attiny84 although that too I didn't test yet

navidad

Thanks for the reply, although I might be missing something as I don't see any download links?

winner10920

#33
Aug 10, 2012, 09:44 pm Last Edit: Aug 10, 2012, 10:00 pm by winner10920 Reason: 1
Guess my phone didn't upload it right, ill try again
i may have to get a different browser on my phone

navidad

Thank you very much, I'm gonna try and play around with it later today

Go Up