I am using a custom Arduino Micro, so pin 12 has a copper trace leading to the interrupt, it cannot be changed. How would I go about setting the pin to be used as an interrupt pin?
The code is as follows
#define INTERRUPT_PIN 12 // use pin 2 on Arduino Uno & most boards
Serial.println(F("Initializing I2C devices..."));
mpu.initialize();
pinMode(INTERRUPT_PIN, INPUT);
// enable Arduino interrupt detection
Serial.println(F("Enabling interrupt detection (Arduino external interrupt 0)..."));
attachInterrupt(digitalPinToInterrupt(INTERRUPT_PIN), dmpDataReady, RISING);
mpuIntStatus = mpu.getIntStatus();