Driver for ITG3200 gyro

Dependents:   Seeed_Grove_Digital_Gyro Seeed_Grove_Digital_Gyro_ben mbed_websocket_client_for_gyro_and_3_Axio mbed_websocket_client_for_gyro

Fork of ITG3200 by Aaron Berk

Revision:
1:ff0a59c5c2f7
Parent:
0:b098d99dd81e
--- a/ITG3200.h	Mon Sep 06 13:49:59 2010 +0000
+++ b/ITG3200.h	Fri Aug 15 23:43:39 2014 +0000
@@ -43,7 +43,6 @@
 /**
  * Defines
  */
-#define ITG3200_I2C_ADDRESS 0x69 //7-bit address.
 
 //-----------
 // Registers
@@ -88,8 +87,9 @@
      *
      * @param sda - mbed pin to use for the SDA I2C line.
      * @param scl - mbed pin to use for the SCL I2C line.
+     * @param address - address of the device 0x69 bu default but some use 0x68.
      */
-    ITG3200(PinName sda, PinName scl);
+    ITG3200(PinName sda, PinName scl, uint8_t address = 0x69);
 
     /**
      * Get the identity of the device.
@@ -333,7 +333,7 @@
 private:
 
     I2C i2c_;
-
+    uint8_t ITG3200_I2C_ADDRESS;
 };
 
 #endif /* ITG3200_H */