function HTS221(_i2c, debugMode) {
  this.i2c = _i2c;
  this.debugMode = debugMode; // 0 or 1
  
  this.w(C.CTRL_REG1_ADDRESS, (C.PD_ACTIVE_MODE | C.BDU_NOT_CONTINUOUS_UPDATE | C.ODR_ONE_HZ));
  this.w(C.CTRL_AV_CONF, C.AVGT_DEFAULT);

}
/**
 * Create a new HTS221 sensor instance
 * 
 *   Set the driver mode, block data rate, output data rate
 *   Set the average configuration (default)
 */
Create a new HTS221 sensor instance

Set the driver mode, block data rate, output data rate
Set the average configuration (default)
Create a new HTS221 sensor instance Set the driver mode block data rate output data rate Set the average configuration ( default )
function HTS221(_i2c, debugMode) {
  this.i2c = _i2c;
  this.debugMode = debugMode; 
  this.w(C.CTRL_REG1_ADDRESS, (C.PD_ACTIVE_MODE | C.BDU_NOT_CONTINUOUS_UPDATE | C.ODR_ONE_HZ));
  this.w(C.CTRL_AV_CONF, C.AVGT_DEFAULT);
}
function HTS221 ( _i2c , debugMode ) { this . i2c = _i2c ; this . debugMode = debugMode ; this . w ( C . CTRL_REG1_ADDRESS , ( C . PD_ACTIVE_MODE | C . BDU_NOT_CONTINUOUS_UPDATE | C . ODR_ONE_HZ ) ) ; this . w ( C . CTRL_AV_CONF , C . AVGT_DEFAULT ) ; }
Create a new HTS221 sensor instance
Create a new HTS221 sensor instance
// 0 or 1