MPU6050 simple library
Fork of MPU6050 by
Revision 3:48773a5c8d48, committed 2017-05-21
- Comitter:
- Stas285
- Date:
- Sun May 21 12:03:43 2017 +0000
- Parent:
- 2:c68be621f2f1
- Commit message:
- 200 Hz
Changed in this revision
MPU6050.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r c68be621f2f1 -r 48773a5c8d48 MPU6050.cpp --- a/MPU6050.cpp Sun May 14 11:28:03 2017 +0000 +++ b/MPU6050.cpp Sun May 21 12:03:43 2017 +0000 @@ -15,7 +15,7 @@ write_reg(ADDRESS,MPU6050_GYRO_CONFIG,0x08);//gyro +-500deg/s //0x10);//gyro +-1000deg/s write_reg(ADDRESS,MPU6050_ACCEL_CONFIG,0x00);//accel +-2G //0x08);//accel +-4G write_reg(ADDRESS,MPU6050_CONFIG,0x05);//bandwidth 10Hz, delay 14 mS - write_reg(ADDRESS,MPU6050_SMPLRT_DIV,0x19);//sample rate 40Hz (1000/25) + write_reg(ADDRESS,MPU6050_SMPLRT_DIV,0x04);//sample rate 200Hz (1000/5) } char MPU6050::getID(void)