program test MPU6050

Dependents:   ticker_test_mpu6050

Fork of MPU6050 by Erik -

Revision:
4:4926b02b5eab
Parent:
3:09293fbaf92b
--- a/MPU6050.h	Tue Feb 17 18:29:16 2015 +0000
+++ b/MPU6050.h	Wed Feb 18 08:59:32 2015 +0000
@@ -13,10 +13,12 @@
 
 
 /**
- * Defines
- */
-#ifndef MPU6050_ADDRESS
-    #define MPU6050_ADDRESS             0x68 // address pin low (GND), default for InvenSense evaluation board
+ * Defines */
+//modif prog by salvat 
+#ifndef _MPU6050_ADDRESS
+    #define _MPU6050_ADDRESS     
+
+
 #endif
 
 #ifdef MPU6050_ES
@@ -257,14 +259,20 @@
      */
      void read( char adress, char *data, int length);
      
-
-     
+     /**
+     * Find all I2C devices and print all devices I2C + update MPU6050_ADDRESS (choice between 0x68 and 0X69)
+     *
+     */
+    bool I2C_finder();    
         
      private:
-
      I2C connection;
      char currentAcceleroRange;
      char currentGyroRange;
+// add by salvat : permet de trouver l'adresse du MPU6050 dans testConnexion
+     char MPU6050_ADDRESS;// address pin low (GND), default for InvenSense evaluation board
+     bool isFindMPU6050;
+     
      
 
 };