Took Kris Winer's code and added some functions for the MPU6050
Fork of MPU6050 by
Diff: I2Cdev.cpp
- Revision:
- 3:6624faa750c7
- Parent:
- 1:1e0baaf91e96
diff -r 19e22a4eaa18 -r 6624faa750c7 I2Cdev.cpp --- 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.