I tried them all separately, using the modules provided on the website
I purchased all my gear from adafruit, on the breakout boards (which come with resistors?)
Not sure what's going wrong here..
// Here's the error message:
"Uncaught InternalError: Timeout on I2C Write Transmit Mode 2
at line 1 col 41
...eTo(C.MPL3115A2_ADDRESS,reg);var d=this.i2c.readFrom(C.MPL31...
^
in function "readS16" called from line 1 col 67
...L3115A2_REGISTER_CAL_A0_MSB)/8;this.b1=this.readS16(C.MPL311...
^
in function "MPL3115A2" called from line 1 col 19
new MPL3115A2(_i2c)
^
in function "connect" called from line 1 col 38
var mpl = require("mpl").connect(I2C3);
^
Uncaught Error: Field or method "getAltitude" does not already exist, and can't create it on undefined
at line 1 col 4
mpl.getAltitude(function(x) {
^
=undefined
> "
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.
// Here's the error message:
"Uncaught InternalError: Timeout on I2C Write Transmit Mode 2
at line 1 col 41
...eTo(C.MPL3115A2_ADDRESS,reg);var d=this.i2c.readFrom(C.MPL31...
^
in function "readS16" called from line 1 col 67
...L3115A2_REGISTER_CAL_A0_MSB)/8;this.b1=this.readS16(C.MPL311...
^
in function "MPL3115A2" called from line 1 col 19
new MPL3115A2(_i2c)
^
in function "connect" called from line 1 col 38
var mpl = require("mpl").connect(I2C3);
^
Uncaught Error: Field or method "getAltitude" does not already exist, and can't create it on undefined
at line 1 col 4
mpl.getAltitude(function(x) {
^
=undefined
> "