@alexanderbrevig Board arrived this evening so hooked up to Espruino and got code loaded. Think it was right on flash code limit as was reporting out of memory while loading it. But minifying the module solved that.
Comms over I2C confirmed and can dump out the bme280 object structure and am getting compensation values back from the chip.
Got a few errors:
Line 290
var data[8];
throws an error and I think should be:
var data = [];
Line 380:
this.writeRegister(C.regCtrlMeas, C.ctrlMeas);
I think should be:
this.writeRegister(C.regCtrlMeas, ctrlMeas);
Line 10
regMeasurementsStart: 0xf,
should that be:
regMeasurementsStart: 0xf7,
Will crack on running tests in the morning but for now I'm off to bed.
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.
@alexanderbrevig Board arrived this evening so hooked up to Espruino and got code loaded. Think it was right on flash code limit as was reporting out of memory while loading it. But minifying the module solved that.
Comms over I2C confirmed and can dump out the bme280 object structure and am getting compensation values back from the chip.
Got a few errors:
Line 290
throws an error and I think should be:
Line 380:
I think should be:
Line 10
should that be:
Will crack on running tests in the morning but for now I'm off to bed.
Cheers
Ian