julian alvarez / MPU6050

Files at this revision

API Documentation at this revision

Comitter:
jiuk
Date:
Mon Nov 19 02:10:03 2018 +0000
Parent:
3:0e4b60792553
Commit message:
Version no funcional, para sacar trozos de codigo.

Changed in this revision

MPU6050.cpp 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
--- a/MPU6050.cpp	Thu Nov 08 12:53:16 2018 +0000
+++ b/MPU6050.cpp	Mon Nov 19 02:10:03 2018 +0000
@@ -11,10 +11,11 @@
     currentAcceleroRange=0;
 }
 
+
 //--------------------------------------------------
 //-------------------General------------------------
 //--------------------------------------------------
-
+/*
 void MPU6050::write(char address, char data) {
     char temp[2];
     temp[0]=address;
@@ -69,7 +70,7 @@
         temp &= ~(1<<MPU6050_BYPASS_BIT);
     this->write(MPU6050_INT_PIN_CFG, temp);
 }
-
+*/
 //--------------------------------------------------
 //----------------Accelerometer---------------------
 //--------------------------------------------------
@@ -147,7 +148,7 @@
         data[2]*=2;
     #endif   
 }
-
+/*
 //--------------------------------------------------
 //------------------Gyroscope-----------------------
 //--------------------------------------------------
@@ -235,3 +236,4 @@
     return retval;
 }
 
+*/
--- a/MPU6050.h	Thu Nov 08 12:53:16 2018 +0000
+++ b/MPU6050.h	Mon Nov 19 02:10:03 2018 +0000
@@ -16,7 +16,7 @@
  * Defines
  */
 #ifndef MPU6050_ADDRESS
-    #define MPU6050_ADDRESS             0x68 // address pin low (GND), default for InvenSense evaluation board
+        #define MPU6050_ADDRESS             0x68 // address pin low (GND), default for InvenSense evaluation board
 #endif
 
 #ifdef MPU6050_ES
@@ -53,7 +53,7 @@
   * Definitions
   */
 #define MPU6050_SLP_BIT             6
-#define MPU6050_BYPASS_BIT         1
+#define MPU6050_BYPASS_BIT          1
 
 #define MPU6050_BW_256              0
 #define MPU6050_BW_188              1