Go Down

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

winner10920

Just change the core name to whichever yours is, youll find the name within the attiny core itself, I found it I think by pin definitions, then it will automatically recognize it

Shrugs

Right, right. Wait, since I manually commented it out and forced the pin definitions to be for the 84, wouldn't it work already?
I changed
Code: [Select]

#if defined( __AVR_ATtinyX4__ )
const static uint8_t SS   = PA7;
const static uint8_t MOSI = PA5;
const static uint8_t MISO = PA6;
const static uint8_t SCK  = PA4;
#endif

To:
Code: [Select]

//#if defined( __AVR_ATtinyX4__ )
const static uint8_t SS   = PA7;
const static uint8_t MOSI = PA5;
const static uint8_t MISO = PA6;
const static uint8_t SCK  = PA4;
//#endif

So the pins are definitely correct, I think.

winner10920

Does anything change when you force the definitions?

Shrugs

It stops giving me the "SS/MOSI/MISO/SCK is undefined in this context" or whatever messages and compiles perfectly. I had done that previously, so now I don't think that it's related to my problems now. Thanks for helping, by the way.

winner10920

Np, let me know if u figure it out, feels good to know something I made works for other people too lol

Go Up