I'm using a 8M2 to read temperature from I2C DS1631 and format as serial data for a remote PC. Simple conversion from published arduino code, but the 1631 requires write to a control register to start the conversion.
No data is involved, just needs 2 bytes sent - the device address and the register ($51) location.
The published code does this
I tried hi2cout $51 - but this gives syntax error. Can this be done with the 8M2?
PJ
No data is involved, just needs 2 bytes sent - the device address and the register ($51) location.
The published code does this
Code:
Wire.beginTransmission(DS1631_ADDRESS);
Wire.write(0x51);
Wire.endTransmission();
PJ