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.
Diff: IMU/Sensors/I2C_Sensor.cpp
- Revision:
- 6:1aa4f722e8e0
- Parent:
- 5:06e978fd147a
--- a/IMU/Sensors/I2C_Sensor.cpp Sun Jul 06 05:51:25 2014 +0000 +++ b/IMU/Sensors/I2C_Sensor.cpp Sun Jul 06 09:25:09 2014 +0000 @@ -4,7 +4,7 @@ #define GET_I2C_WRITE_ADDRESS(ADR) (ADR << 1&0xFE) // ADR & 1111 1110 #define GET_I2C_READ_ADDRESS(ADR) (ADR << 1|0x01) // ADR | 0000 0001 -I2C_Sensor::I2C_Sensor(PinName sda, PinName scl, char i2c_address) : i2c(sda, scl), modi2c(sda, scl), local("local") +I2C_Sensor::I2C_Sensor(PinName sda, PinName scl, char i2c_address) : i2c(sda, scl), local("local") { I2C_Sensor::i2c_address = i2c_address; i2c.frequency(400000); // standard speed