function BMP085(/*=I2C*/_i2c, _mode) {
  this.i2c = _i2c;
  _mode = typeof _mode !== 'undefined' ? _mode : 3;
  this.oss = _mode;

  if (this.oss > 3 || this.oss < 0) {
    this.oss = 3;
  }

  var id = this.read8(0xD0);
  if(id != 0x55) {
    console.log("Bad ID of: " + id);
    return null;
  }
    this.readCoefficients();
}
/*
Module to talk to the Bosch BMP085 or BMP180 digital pressure sensors using I2C.

  BMP085_ADDRESS                     : 0x77,
  BMP085_REGISTER_CAL_AC1            : 0xAA,
  BMP085_REGISTER_CAL_AC2            : 0xAC,
  BMP085_REGISTER_CAL_AC3            : 0xAE,
  BMP085_REGISTER_CAL_AC4            : 0xB0,
  BMP085_REGISTER_CAL_AC5            : 0xB2,
  BMP085_REGISTER_CAL_AC6            : 0xB4,
  BMP085_REGISTER_CAL_B1             : 0xB6,
  BMP085_REGISTER_CAL_B2             : 0xB8,
  BMP085_REGISTER_CAL_MB             : 0xBA,
  BMP085_REGISTER_CAL_MC             : 0xBC,
  BMP085_REGISTER_CAL_MD             : 0xBE,
  BMP085_REGISTER_CHIPID             : 0xD0,
  BMP085_REGISTER_SOFTRESET          : 0xE0,
  BMP085_REGISTER_CONTROL            : 0xF4,
  BMP085_REGISTER_TEMPDATA           : 0xF6,
  BMP085_REGISTER_PRESSUREDATA       : 0xF6,
  BMP085_REGISTER_READTEMPCMD        : 0x2E,
  BMP085_REGISTER_READPRESSURECMD    : 0x34,
  BMP085_MODE_ULTRALOWPOWER          : 0,
  BMP085_MODE_STANDARD               : 1,
  BMP085_MODE_HIGHRES                : 2,
  BMP085_MODE_ULTRAHIGHRES           : 3

*/
Module to talk to the Bosch BMP085 or BMP180 digital pressure sensors using I2C.
Module to talk to the Bosch BMP085 or BMP180 digital pressure sensors using I2C .
function BMP085(_i2c, _mode) {
  this.i2c = _i2c;
  _mode = typeof _mode !== 'undefined' ? _mode : 3;
  this.oss = _mode;
  if (this.oss > 3 || this.oss < 0) {
    this.oss = 3;
  }
  var id = this.read8(0xD0);
  if(id != 0x55) {
    console.log("Bad ID of: " + id);
    return null;
  }
    this.readCoefficients();
}
function BMP085 ( _i2c , _mode ) { this . i2c = _i2c ; _mode = typeof _mode !== 'undefined' ? _mode : 3 ; this . oss = _mode ; if ( this . oss > 3 || this . oss < 0 ) { this . oss = 3 ; } var id = this . read8 ( 0xD0 ) ; if ( id != 0x55 ) { console . log ( "Bad ID of: " + id ) ; return null ; } this . readCoefficients ( ) ; }
Module to talk to the Bosch BMP085 or BMP180 digital pressure sensors using I2C.
Module to talk to the Bosch BMP085 or BMP180 digital pressure sensors using I2C .
/*=I2C*/