Hard coded I2C address for MPU6050 in MotionApps
There is a variable for the I2C device address in MPU6050.cpp, but in both of the includes files for MotionApps there are hard coded calls to I2Cdev member functions using hard coded values ("0x68") for the device address. I can update this but wanted to check to see if there was a reason for this first. Look at MotionApps 41 on lines 474 to 507.
Thanks!
Hi tsimon57. Just my 2 cents: I think 0x68 it's there just because it's the default mpu6050 / 9150 address. I'm one the lucky guys :-) that, having that address already in use by another i2c device not reconfigurable, had to change it to 0x69 using the solder tip on the 9150 breakout board.
I updated the MPU6050_9Axis_MotionApps41.h source to use variable "devAddr" that is initialized during the MPU6050 class init. In file MPU6050_DMP6.ino I use MPU6050 mpu(0x69); to instantiate the mpu object.
Sorry, have been too busy on the job during last months and did not think to publish this before. Ciao, Mario
Closing ancient issue for cleanup.