MPU6050 simple library

Dependents:   MPU6050_test Drone MPU6050_test acelerometro ... more

Revision:
2:2844a4ac1154
Parent:
1:cf3a9ec7205e
Child:
3:023399fc7ca5
--- a/MPU6050.cpp	Thu Jan 05 05:04:56 2017 +0000
+++ b/MPU6050.cpp	Sun Aug 27 06:55:54 2017 +0000
@@ -14,7 +14,7 @@
     write_reg(ADDRESS,MPU6050_PWR_MGMT_1,0x00);
     write_reg(ADDRESS,MPU6050_GYRO_CONFIG,0x10);//gyro +-1000deg/s
     write_reg(ADDRESS,MPU6050_ACCEL_CONFIG,0x08);//accel +-4G
-    write_reg(ADDRESS,MPU6050_SMPLRT_DIV,0x10);//sample rate 500Hz
+    write_reg(ADDRESS,MPU6050_SMPLRT_DIV,0x10);//sample rate 470Hz
 }
 
 char MPU6050::getID(void)