paulo-raca / YetAnotherArduinoPcIntLibrary

An Arduino library to handle Pin Change Interrupts
21 stars 5 forks source link

Problem when using PJ0..1 and PK0..7 together. #5

Open softfoot opened 2 years ago

softfoot commented 2 years ago

I have code that handles pinchange interrupts from pins PK0..7 - it works very well on an ATMEGA2560 (it's NOT an Arduino board)

But I need to add pinchange support for PJ0 and PJ1 but no matter what I try it wont handle PJ0..1 The pins are changing --- if I "peek" at them, from within the PK interrupt routine I can see them changing. I have separate interrupt routines for each group. I know there can only be 8 monitored pins per group (PK and PJ) What am I missing ?? Do you perhaps have example code of doing something like this ?? Best regards,Dave