Took Kris Winer's code and added some functions for the MPU6050

Dependents:   buffer_algorithm

Fork of MPU6050 by Simon Garfieldsg

Revision:
3:6624faa750c7
Parent:
1:1e0baaf91e96
--- a/I2Cdev.cpp	Wed Feb 11 20:15:11 2015 +0000
+++ b/I2Cdev.cpp	Sat Mar 14 15:44:48 2015 +0000
@@ -9,12 +9,12 @@
 
 I2Cdev::I2Cdev(): debugSerial(USBTX, USBRX), i2c(I2C_SDA,I2C_SCL)
 {
-
+    i2c.frequency(400000);
 }
 
 I2Cdev::I2Cdev(PinName i2cSda, PinName i2cScl): debugSerial(USBTX, USBRX), i2c(i2cSda,i2cScl)
 {
-
+    i2c.frequency(400000);
 }
 
 /** Read a single bit from an 8-bit device register.