MPU6050 library modified so I can use 2 IMUs
Dependents: MPU6050-DMP_sample
Fork of MPU6050 by
Diff: I2Cdev.cpp
- Revision:
- 2:f8bfb37b2e1f
- Parent:
- 1:1e0baaf91e96
- Child:
- 6:d348c3cad7c7
diff -r 1e0baaf91e96 -r f8bfb37b2e1f I2Cdev.cpp --- a/I2Cdev.cpp Wed May 08 00:34:55 2013 +0000 +++ b/I2Cdev.cpp Sun May 12 10:54:50 2013 +0000 @@ -7,12 +7,12 @@ #define useDebugSerial -I2Cdev::I2Cdev(): debugSerial(USBTX, USBRX), i2c(I2C_SDA,I2C_SCL) +I2Cdev::I2Cdev(): i2c(I2C_SDA,I2C_SCL), debugSerial(USBTX, USBRX) { } -I2Cdev::I2Cdev(PinName i2cSda, PinName i2cScl): debugSerial(USBTX, USBRX), i2c(i2cSda,i2cScl) +I2Cdev::I2Cdev(PinName i2cSda, PinName i2cScl): i2c(i2cSda,i2cScl), debugSerial(USBTX, USBRX) { }