text: function c(b){this.i2c=b;this.a0=this.readS16(a.MPL115A2_REGISTER_CAL_A0_MSB)/8;this.b1=this.readS16(a.MPL115A2_REGISTER_CAL_B1_MSB)/8192;this.b2=this.readS16(a.MPL115A2_REGISTER_CAL_B2_MSB)/16384;this.c12=(this.readS16(a.MPL115A2_REGISTER_CAL_C12_MSB)>>2)/4194304}var a={MPL115A2_ADDRESS:96,MPL115A2_CONVERT:18,MPL115A2_REGISTER_P_ADC_MSB:0,MPL115A2_REGISTER_P_ADC_LSB:1,MPL115A2_REGISTER_T_ADC_MSB:2,MPL115A2_REGISTER_T_ADC_LSB:3,MPL115A2_REGISTER_CAL_A0_MSB:4,MPL115A2_REGISTER_CAL_A0_LSB:5,
  MPL115A2_REGISTER_CAL_B1_MSB:6,MPL115A2_REGISTER_CAL_B1_LSB:7,MPL115A2_REGISTER_CAL_B2_MSB:8,MPL115A2_REGISTER_CAL_B2_LSB:9,MPL115A2_REGISTER_CAL_C12_MSB:10,MPL115A2_REGISTER_CAL_C12_LSB:11};c.prototype.read16=function(b){this.i2c.writeTo(a.MPL115A2_ADDRESS,b);b=this.i2c.readFrom(a.MPL115A2_ADDRESS,2);return b[0]<<8|b[1]};c.prototype.readS16=function(b){this.i2c.writeTo(a.MPL115A2_ADDRESS,b);b=this.i2c.readFrom(a.MPL115A2_ADDRESS,2);b=b[0]<<8|b[1];return 32767<b?b-65536:b};c.prototype.readRawData=
  function(b){var d=this;d.i2c.writeTo(a.MPL115A2_ADDRESS,[a.MPL115A2_CONVERT,a.MPL115A2_REGISTER_P_ADC_MSB]);setTimeout(function(){d.i2c.writeTo(a.MPL115A2_ADDRESS,a.MPL115A2_REGISTER_P_ADC_MSB);var c=d.read16(a.MPL115A2_REGISTER_P_ADC_MSB)>>6,f=d.read16(a.MPL115A2_REGISTER_T_ADC_MSB)>>6;b(f,c)},5)};c.prototype.getData=function(b){var a=this;a.readRawData(function(c,d){var e=a.a0+(a.b1+a.c12*c)*d+a.b2*c;e=65/1023*e+50;b({t:((c-498)/-5.35+25).toFixed(2),p:e.toFixed(2)})})};exports.connect=function(a){return new c(a)}