Brunello:
pinMode(PIN1, INPUT); digitalWrite(PIN1, LOW);
l'INT dell'MPU puo' essere impostato come Totem Pole o Open-Drain
Siccome tu non sai come e' impostato, tanto per non sbagliare si inseriscono le PullUpe visto che le PullDown su Arduino non esistono, sarebbe il caso di correggere l'errore
// enable Arduino interrupt detection, this will execute dmpDataReady whenever there is an interrupt,
// independing on what this sketch is doing at that moment
// http://arduino.cc/en/Reference/AttachInterrupt
Serial.print("Enabling interrupt detection... ");
// attachInterrupt(interrupt, function, mode) specifies a function to call when an external interrupt occurs
pinMode(PIN1, INPUT); digitalWrite(PIN1, HIGH); //uso le pull-up
PCintPort::attachInterrupt(PIN1, &dmpDataReady, CHANGE); //prova anche FALLING
// attachInterrupt(0, dmpDataReady, RISING); // the 0 points correctly to INT0 / D2
// -> if there is an interrupt from MPU-6000 to ATMEGA328, boolean mpuInterrupt will be made true
byte mpuIntStatus = SPIread(0x3A, ChipSelPin1); // by reading INT_STATUS register, all interrupts are cleared
Serial.println("done.");
Domani nell'ora di pranzo testerò il programma e posterò la soluzione.
Grazie dell'aiuto intanto : )