First draft HMC5883 magnetometer sensor using physical quantities, outputting via serial port using std::cout on mbed os 5
Diff: I2CBusDevice.h
- Revision:
- 11:de7c9ae7ef65
- Parent:
- 9:87a7169b4d5c
--- a/I2CBusDevice.h Thu Mar 26 21:59:18 2020 +0000 +++ b/I2CBusDevice.h Thu Mar 26 22:58:21 2020 +0000 @@ -8,6 +8,7 @@ constexpr I2CBusDevice(I2C& i2cIn,uint8_t addressIn) : m_i2c{i2cIn},m_address{addressIn}{} + int i2c_write(const char *data, int length,bool repeated = false)const { return m_i2c.write(m_address,data,length, repeated);