A lot of Arduino libraries use define constants to determine the chip that's being used, things along the lines of:
#elif defined(__AVR_ATmega8P__) || defined(__AVR_ATmega8__)
I've got a really small project that I'm trying to move off of my Arduino Duo to an ATTiny85, and it uses a library (IRRemote). I'd like to update the library to use the right values when it detects the ATTiny85 (TIMER1, Pin 0, etc).
Does anyone know if there is a pre-defined constant for the ATTiny85, or how I might set one? I've searched the Arduino header files, and can't find an instance of, for example, AVR_ATmega8P, so I'm not sure where these values get set.
Any help would be greatly appreciated.
Thanks!
Jeff