var BME = require("BME280");
I2C1.setup({scl:A5,sda:A4});
var bme = BME.connect(I2C1, { addr: 0x76 });
console.log(bme.getData());
I'm getting this error
Uncaught InternalError: I2C Write Error 33281
atUncaught InternalError: I2C Write Error 33281
at line 1 col 18
a.writeTo(c,[d,g])
line 1 col 18
a.writeTo(c,[d,g])
^
in function "write" called from line 1 col 4 ^
When i try to use software I2C, it kinda works, but only the first measurement and the humidity is wrong.
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.
Hi.
I'm trying to get a BME280 working using I2C.
I can't seem to get it to work on my Pixl.js
Using the hardware I2C like this:
I'm getting this error
When i try to use software I2C, it kinda works, but only the first measurement and the humidity is wrong.
Thing is, it does work on my Espruino Pico using this code:
This logs the correct humidity, works with hardware I2C and continues to work (in a setInterval for example).
I don't know what to do at this point. Is I2C just broken on (my) pixl.js?