Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ArduinoSerial I2Cdev
Fork of MPU6050 + MPU9150 by
Diff: I2Cdev.cpp
- Revision:
- 6:f38dfe62d74c
- Parent:
- 2:f8bfb37b2e1f
--- a/I2Cdev.cpp Sat Nov 23 16:47:00 2013 +0000 +++ b/I2Cdev.cpp Sat Jan 30 17:12:45 2016 +0000 @@ -5,17 +5,9 @@ #include "I2Cdev.h" -#define useDebugSerial - -I2Cdev::I2Cdev(): i2c(I2C_SDA,I2C_SCL), debugSerial(USBTX, USBRX) -{ +I2Cdev::I2Cdev(): i2c(I2C_SDA,I2C_SCL) {} -} - -I2Cdev::I2Cdev(PinName i2cSda, PinName i2cScl): i2c(i2cSda,i2cScl), debugSerial(USBTX, USBRX) -{ - -} +I2Cdev::I2Cdev(PinName i2cSda, PinName i2cScl): i2c(i2cSda,i2cScl) {} /** Read a single bit from an 8-bit device register. * @param devAddr I2C slave device address