Using Puck.js :)
Yeah so I've polled every address on the I2C bus - the only thing that responds is the humidity sensor. From this I can assume that there must be something wrong with the wiring to the accelerometer.
I'm going to look further into the wiring here and let you know. For those interested in checking whether your sensor(s) can be contacted through I2C:
let i2c = new I2C();
i2c.setup({sda: D25, scl: D26});
for (i=0; i<128; i++) {
i2c.writeTo(i, 0x0F);
console.log("I2C addr is: " + i + ", response: " + i2c.readFrom(i, 1)[0]);
}
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.
Using Puck.js :)
Yeah so I've polled every address on the I2C bus - the only thing that responds is the humidity sensor. From this I can assume that there must be something wrong with the wiring to the accelerometer.
I'm going to look further into the wiring here and let you know. For those interested in checking whether your sensor(s) can be contacted through I2C: