i2c.writeTo(TMP117_Address, Temp_Reg); let a = i2c.writeTo(TMP117_Address, 0);
Is there any specific reason to write twice to the register 0 / Temp_Reg?
I'd say for this device it should be only one line, like this
i2c.writeTo({address:TMP117_Address, stop:false}, Temp_Reg);
@maze1980 started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Is there any specific reason to write twice to the register 0 / Temp_Reg?
I'd say for this device it should be only one line, like this