GreyGnome / EnableInterrupt

New Arduino interrupt library, designed for Arduino Uno/Mega 2560/Leonardo/Due
332 stars 73 forks source link

Using PORTB interrupts on ATtiny84 #29

Closed rtlr closed 8 years ago

rtlr commented 8 years ago

Pin change interrupts set on B0 and B1 were failing to trigger the appropriate functions.

Adding the following to the code directs mask to the right register and appears to solve the issue:

ifdef EI_ATTINY24

interruptMask = PCMSK1 & interruptMask; ...

ENDIF

GreyGnome commented 8 years ago

Thanks. It's a holiday weekend, so I'll take a look at this soon but I'm kind of busy putting up Christmas decorations :-) .

GreyGnome commented 8 years ago

It's been out a while. I'll close this.