mjs513
Senior Member+
I want to use the QuadEncoder + Interrupts on PinA and PinB. It seems that switsching the Pins (2 and 3) with the XBAR to the encoder disabled the interrupts and vice versa, attaching interrupts to the Pins, disables the QuadEncoder. The later blocks the former.
Any idea to habe Filtering of the QuadEncoder and Interrupt response on the signal transition (without applying the signal to two Pins)?
Best regards
Edmund
Not really sure what you are asking. But if the question is if you can attach an interrupt to same pins as you are using while you are using the encoder library the answer is no. The library uses it own set of interrupts to determine when the triggers are set.
The library provides filtering capabilities as illustrated in the QuadEncoder Example.
You might want to check this thread out on how to set up an interrupt based on a compare value: QuadEncoder Compare Interrupt