MPU6050 simple library

Dependents:   MPU6050_test Drone MPU6050_test acelerometro ... more

Revision:
3:023399fc7ca5
Parent:
2:2844a4ac1154
Child:
8:566b467537c8
--- a/MPU6050.cpp	Sun Aug 27 06:55:54 2017 +0000
+++ b/MPU6050.cpp	Sun Jan 07 07:35:59 2018 +0000
@@ -11,10 +11,11 @@
 
 void MPU6050::start(void)
 {
-    write_reg(ADDRESS,MPU6050_PWR_MGMT_1,0x00);
+    write_reg(ADDRESS,MPU6050_PWR_MGMT_1,0x00);//disable sleep mode
     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 470Hz
+    //to set more, see MPU6000 Register Map
 }
 
 char MPU6050::getID(void)
@@ -112,4 +113,4 @@
         wait(0.1);
     }
 }
-*/
\ No newline at end of file
+*/