a
Diff: I2Cdev.cpp
- Revision:
- 1:0631d7e009fa
- Parent:
- 0:3aa973ebe3e5
diff -r 3aa973ebe3e5 -r 0631d7e009fa I2Cdev.cpp --- a/I2Cdev.cpp Sun Jan 31 13:52:23 2016 +0000 +++ b/I2Cdev.cpp Mon May 06 04:21:43 2019 +0000 @@ -8,11 +8,14 @@ #include "I2Cdev.h" -I2C I2Cdev::i2c(I2C_SDA,I2C_SCL); +I2Cdev::I2Cdev(): i2c(I2C_SDA,I2C_SCL) +{ -/** Default constructor. - */ -I2Cdev::I2Cdev() { +} + +I2Cdev::I2Cdev(PinName i2cSda, PinName i2cScl): i2c(i2cSda,i2cScl) +{ + } /** Read a single bit from an 8-bit device register.