SPI.usingInterrupt() and PCINT

i have an interrupt from a PCINT pin, and would like to use an spi call during the interrupt,
i'm unsure which interrupt number to use with the spi.usingInterrupt() function as digitalPinToInterrupt() just returns -1 on that pin and the PCINT interrupt routines are separated out by port.

Use 255 as the interrupt number.

out of interest, is this number the "vector number" then as described in this article?

No, that's the value documented in the .h file to be used for every interrupt not being an external hardware interrupt.

Thank you for sharing your knowledge! :grinning:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.