For nucleoF103 change sda,scl to PB_7,PB_6
Dependents: AGV_0411 AGV_SMT_Sevro AGV_SMT
Fork of MPU6050-DMP by
Diff: MPU6050.h
- Revision:
- 2:f8bfb37b2e1f
- Parent:
- 1:1e0baaf91e96
- Child:
- 3:25e1a5a10e53
--- a/MPU6050.h Wed May 08 00:34:55 2013 +0000 +++ b/MPU6050.h Sun May 12 10:54:50 2013 +0000 @@ -102,20 +102,32 @@ #define MPU6050_RA_INT_ENABLE 0x38 #define MPU6050_RA_DMP_INT_STATUS 0x39 #define MPU6050_RA_INT_STATUS 0x3A + #define MPU6050_RA_ACCEL_XOUT_H 0x3B #define MPU6050_RA_ACCEL_XOUT_L 0x3C #define MPU6050_RA_ACCEL_YOUT_H 0x3D #define MPU6050_RA_ACCEL_YOUT_L 0x3E #define MPU6050_RA_ACCEL_ZOUT_H 0x3F #define MPU6050_RA_ACCEL_ZOUT_L 0x40 + #define MPU6050_RA_TEMP_OUT_H 0x41 #define MPU6050_RA_TEMP_OUT_L 0x42 + #define MPU6050_RA_GYRO_XOUT_H 0x43 #define MPU6050_RA_GYRO_XOUT_L 0x44 #define MPU6050_RA_GYRO_YOUT_H 0x45 #define MPU6050_RA_GYRO_YOUT_L 0x46 #define MPU6050_RA_GYRO_ZOUT_H 0x47 #define MPU6050_RA_GYRO_ZOUT_L 0x48 + +#define MPU9150_RA_MAG_ADDRESS 0x0C +#define MPU9150_RA_MAG_XOUT_L 0x03 +#define MPU9150_RA_MAG_XOUT_H 0x04 +#define MPU9150_RA_MAG_YOUT_L 0x05 +#define MPU9150_RA_MAG_YOUT_H 0x06 +#define MPU9150_RA_MAG_ZOUT_L 0x07 +#define MPU9150_RA_MAG_ZOUT_H 0x08 + #define MPU6050_RA_EXT_SENS_DATA_00 0x49 #define MPU6050_RA_EXT_SENS_DATA_01 0x4A #define MPU6050_RA_EXT_SENS_DATA_02 0x4B