Update Unitemp

https://github.com/quen0n/unitemp-flipperzero/tree/dev
This commit is contained in:
MX
2022-12-21 14:23:26 +03:00
parent 05147e5b7a
commit 488211b4d7
9 changed files with 126 additions and 20 deletions

View File

@@ -71,8 +71,19 @@ const Interface ONE_WIRE = {
//Перечень интерфейсов подключения
//static const Interface* interfaces[] = {&SINGLE_WIRE, &I2C, &ONE_WIRE};
//Перечень датчиков
static const SensorType* sensorTypes[] =
{&DHT11, &DHT12_SW, &DHT21, &DHT22, &AM2320_SW, &AM2320_I2C, &LM75, &BMP280, &BME280, &Dallas};
static const SensorType* sensorTypes[] = {
&DHT11,
&DHT12_SW,
&DHT20,
&DHT21,
&DHT22,
&Dallas,
&AM2320_SW,
&AM2320_I2C,
&AHT10,
&LM75,
&BMP280,
&BME280};
const SensorType* unitemp_sensors_getTypeFromInt(uint8_t index) {
if(index > SENSOR_TYPES_COUNT) return NULL;