Driver for ADXL345
Fork of ADXL345_I2C by
Diff: ADXL345_I2C.cpp
- Revision:
- 3:a453a5e561c2
- Parent:
- 0:3957077e9775
--- a/ADXL345_I2C.cpp Sat Dec 19 09:17:19 2015 +0000 +++ b/ADXL345_I2C.cpp Sat Dec 19 10:40:48 2015 +0000 @@ -47,6 +47,11 @@ } +ADXL345_I2C::ADXL345_I2C(I2C &i2c) : i2c_(i2c) +{ + +} + char ADXL345_I2C::getDevId(void) { return oneByteRead(ADXL345_DEVID_REG);