because you need to call i2c.writeTo within the setInterval to send the read command (see step 3 of table 17, page 16 of the datasheet)
i2c.writeTo
The data retrieval is made of 1 Write, followed by 4 Read
@Jean-Philippe_Rey 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.
because you need to call
i2c.writeTo
within the setInterval to send the read command (see step 3 of table 17, page 16 of the datasheet)The data retrieval is made of 1 Write, followed by 4 Read