Ported from Arduino Library : https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050
Dependents: kopija_NUCLEO_CELL_LOCKER_copy
Fork of MPU6050 by
Diff: I2Cdev.cpp
- Revision:
- 4:1e0b279766be
- Parent:
- 3:b21c8c3456be
--- a/I2Cdev.cpp Tue Aug 01 15:03:01 2017 +0000 +++ b/I2Cdev.cpp Tue Nov 07 16:34:43 2017 +0000 @@ -7,12 +7,12 @@ #define useDebugSerial -I2Cdev::I2Cdev(): i2c(p26,p27) +I2Cdev::I2Cdev(): i2c(I2C_SDA,I2C_SCL) { } -I2Cdev::I2Cdev(PinName p26, PinName p27): i2c(p26,p27) +I2Cdev::I2Cdev(PinName SDA, PinName SCL): i2c(SDA,SCL) { }