jrowberg / i2cdevlib

I2C device library collection for AVR/Arduino or other C++-based MCUs
http://www.i2cdevlib.com
3.94k stars 7.51k forks source link

MPU6050 lib documentation: is the MPU6050 interrupt pin used or not? #401

Closed dsyleixa closed 6 years ago

dsyleixa commented 6 years ago

as to the MPU6050 lib documentation: is the MPU6050 interrupt pin used or not? In case yes, to which Arduino pin must it be attached?

ajuancer commented 6 years ago

Yes, it's used to control the data that the Arduino receives. The pin 2 of the Arduino UNO.

dsyleixa commented 6 years ago

thanks, where can that be defined and changed in the code? I have an Adafruit Feather M4 (and an Itsybitsy M0) and pin2 is not available or already taken.

jrowberg commented 6 years ago

It's a #define statement in the .ino file:

https://github.com/jrowberg/i2cdevlib/blob/2e9042c82d2b512a060d200dd3f772fe336c57e5/Arduino/MPU6050/examples/MPU6050_DMP6/MPU6050_DMP6.ino#L122

dsyleixa commented 6 years ago

I see, thank you very much!