Can someone with more I2C experience on the Espruino answer if
Wire.beginTransmission(addrBME280); Wire.write(reg); Wire.write(data); Wire.endTransmission();
equals
I2C1.writeTo(addrBME280, [reg, data]);
If not then could a sample for the equivalent be provided? I'll fix the gist as needed (or feel free to fix yourself:) )
@alexanderbrevig 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.
Can someone with more I2C experience on the Espruino answer if
equals
If not then could a sample for the equivalent be provided? I'll fix the gist as needed (or feel free to fix yourself:) )