SHT31 constructor

SHT31(
  1. I2C i2c, [
  2. int i2cAddress = sht31DefaultI2Caddress
])

Creates a SHT31 sensor instance that uses the i2c bus with the optional i2cAddress.

Implementation

SHT31(this.i2c, [this.i2cAddress = sht31DefaultI2Caddress]) {
  reset();
}