I'm trying to use the Interrupt from the VLC53L4CX to trigger some code.
I tied this to the A2 pin on the QtPy, but it never fires the interrupt.
My assumption is that the A0-A3 pins are Analog and just don't support interrupts.
Is there a pin that does?
I've used a logic probe and can see that the signal is actually getting to the pad.
Here's the Arduino code I've used..
Code: Select all
// global stuff outside the setup()
#define INTERRUPT_PIN A2
volatile int interruptCount = 0;
void measurementInterruptHandler()
{
++interruptCount;
}
// This is in my setup()
pinMode(INTERRUPT_PIN, INPUT_PULLUP);
attachInterrupt(INTERRUPT_PIN, measurementInterruptHandler, FALLING);