MPU6050 library modified so I can use 2 IMUs
Dependents: MPU6050-DMP_sample
Fork of MPU6050 by
Diff: MPU6050.cpp
- Revision:
- 6:d348c3cad7c7
- Parent:
- 3:25e1a5a10e53
diff -r 7d1bf3ce0053 -r d348c3cad7c7 MPU6050.cpp --- a/MPU6050.cpp Sat Nov 23 16:47:00 2013 +0000 +++ b/MPU6050.cpp Wed Mar 18 22:18:55 2015 +0000 @@ -83,6 +83,7 @@ #endif setClockSource(MPU6050_CLOCK_PLL_XGYRO); + //setMasterClockSpeed(13); //MARK PUT THIS LINE IN. Changes I2C to 400khz? setFullScaleGyroRange(MPU6050_GYRO_FS_250); setFullScaleAccelRange(MPU6050_ACCEL_FS_2); setSleepEnabled(false); // thanks to Jack Elston for pointing this one out!