i2c driver for ITG3200 gyroscope sensor

Dependents:   m3Dpi

Fork of ITG3200 by Aaron Berk

Files at this revision

API Documentation at this revision

Comitter:
sillevl
Date:
Thu Dec 03 07:54:12 2015 +0000
Parent:
0:b098d99dd81e
Child:
2:92aec36778a7
Commit message:
enable fast mode

Changed in this revision

ITG3200.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/ITG3200.cpp	Mon Sep 06 13:49:59 2010 +0000
+++ b/ITG3200.cpp	Thu Dec 03 07:54:12 2015 +0000
@@ -40,7 +40,7 @@
 ITG3200::ITG3200(PinName sda, PinName scl) : i2c_(sda, scl) {
 
     //400kHz, fast mode.
-    i2c_.frequency(400000);
+    //i2c_.frequency(400000);
     
     //Set FS_SEL to 0x03 for proper operation.
     //See datasheet for details.