• 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:) )

About