Update Unitemp

and remove old temp sensor app, unitemp now supports all sensors from that app
This commit is contained in:
MX
2023-01-07 20:05:37 +03:00
parent bc99538ca8
commit 797ddc0755
10 changed files with 3 additions and 423 deletions

View File

@@ -20,6 +20,7 @@
const SensorType HTU21x = {
.typename = "HTU21x",
.altname = "HTU21x/SI70xx/SHT2x",
.interface = &I2C,
.datatype = UT_DATA_TYPE_TEMP_HUM,
.pollingInterval = 250,
@@ -45,7 +46,7 @@ bool unitemp_HTU21x_alloc(Sensor* sensor, char* args) {
//Адреса на шине I2C (7 бит)
i2c_sensor->minI2CAdr = 0x40 << 1;
i2c_sensor->maxI2CAdr = 0x40 << 1;
i2c_sensor->maxI2CAdr = 0x41 << 1;
return true;
}