Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MPU6050 by
Revision 2:cd30a8ec605c, committed 2017-07-17
- Comitter:
- 3050311118
- Date:
- Mon Jul 17 13:56:03 2017 +0000
- Parent:
- 1:1e0baaf91e96
- Commit message:
- 11234
Changed in this revision
I2Cdev.h | Show annotated file Show diff for this revision Revisions of this file |
MPU6050.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 1e0baaf91e96 -r cd30a8ec605c I2Cdev.h --- a/I2Cdev.h Wed May 08 00:34:55 2013 +0000 +++ b/I2Cdev.h Mon Jul 17 13:56:03 2017 +0000 @@ -9,8 +9,8 @@ #include "mbed.h" -#define I2C_SDA p28 -#define I2C_SCL p27 +#define I2C_SDA PB_7 +#define I2C_SCL PB_6 class I2Cdev { private:
diff -r 1e0baaf91e96 -r cd30a8ec605c MPU6050.h --- a/MPU6050.h Wed May 08 00:34:55 2013 +0000 +++ b/MPU6050.h Mon Jul 17 13:56:03 2017 +0000 @@ -48,7 +48,7 @@ #define MPU6050_ADDRESS_AD0_LOW 0x68 // address pin low (GND), default for InvenSense evaluation board #define MPU6050_ADDRESS_AD0_HIGH 0x69 // address pin high (VCC) -#define MPU6050_DEFAULT_ADDRESS MPU6050_ADDRESS_AD0_LOW +#define MPU6050_DEFAULT_ADDRESS MPU6050_ADDRESS_AD0_HIGH #define MPU6050_RA_XG_OFFS_TC 0x00 //[7] PWR_MODE, [6:1] XG_OFFS_TC, [0] OTP_BNK_VLD #define MPU6050_RA_YG_OFFS_TC 0x01 //[7] PWR_MODE, [6:1] YG_OFFS_TC, [0] OTP_BNK_VLD