Thanks very much. You are correct. PEBKAC -- I had this:
#elseif defined(__AVR_ATtiny85__)
OCR0A = min((frequency>>2) - 1, 255); // Every count is 4uS, so divide by 4 (bitwise shift right 2) subtract one, then make sure we don't go over 255 limit.
TIMSK |= (1<<OCIE0A); // Enable Timer0 interrupt.
instead of this:
#elif defined(__AVR_ATtiny85__)
OCR0A = min((frequency>>2) - 1, 255); // Every count is 4uS, so divide by 4 (bitwise shift right 2) subtract one, then make sure we don't go over 255 limit.
TIMSK |= (1<<OCIE0A); // Enable Timer0 interrupt.
Interestingly, this is the error that it gives (when I used "#elseif"):
C:\Arduino Digispark\libraries\NewPing\NewPing.cpp: In static member function 'static void NewPing::timer_us(unsigned int, void (*)())':
C:\Arduino Digispark\libraries\NewPing\NewPing.cpp:154: error: 'OCR2A' was not declared in this scope
C:\Arduino Digispark\libraries\NewPing\NewPing.cpp:155: error: 'TIMSK2' was not declared in this scope
C:\Arduino Digispark\libraries\NewPing\NewPing.cpp:155: error: 'OCIE2A' was not declared in this scope
somehow the preprocessor is not handling/reporting the error the way I expected.
Thanks much!