mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-20 04:54:45 -07:00
Update Unitemp
and remove old temp sensor app, unitemp now supports all sensors from that app
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user