issues
Dependents: mpu6050_test_basic_1
Fork of MPU6050 by
Diff: I2Cdev.cpp
- Revision:
- 2:d7915dab2d3c
- Parent:
- 1:1e0baaf91e96
--- a/I2Cdev.cpp Wed May 08 00:34:55 2013 +0000 +++ b/I2Cdev.cpp Tue Jul 01 23:24:17 2014 +0000 @@ -4,15 +4,16 @@ // 2013-01-08 - first release #include "I2Cdev.h" +#include "shared.h" #define useDebugSerial -I2Cdev::I2Cdev(): debugSerial(USBTX, USBRX), i2c(I2C_SDA,I2C_SCL) +I2Cdev::I2Cdev(): i2c(I2C_SDA,I2C_SCL) { } -I2Cdev::I2Cdev(PinName i2cSda, PinName i2cScl): debugSerial(USBTX, USBRX), i2c(i2cSda,i2cScl) +I2Cdev::I2Cdev(PinName i2cSda, PinName i2cScl) : i2c(i2cSda, i2cScl) { } @@ -136,6 +137,7 @@ i2c.read(devAddr<<1, redData, length); for(int i =0; i < length; i++) { data[i] = redData[i]; + pc.printf("%d", redData[i]); } free (redData); return length;