Marcus 2024-11-18 23:11:04 +01:00
parent 4ecb478354
commit 270806e5fa
3 changed files with 13 additions and 33 deletions

View file

@ -63,32 +63,18 @@ Sensor_Index SensorIndex[] {
}}, }},
// 1 - internal ADC // 1 - internal ADC
{ SENSOR_01_NAME, { { SENSOR_01_NAME,
SENSOR_READING_RAW, {
}}, SENSOR_READING_TEMP
},
},
// 2 - BME280 // 2 - BME280
{ "BME280", { { SENSOR_02_NAME,
{
SENSOR_READING_TEMP, SENSOR_READING_TEMP,
SENSOR_READING_HUMIDITY, SENSOR_READING_HUMIDITY,
SENSOR_READING_PRESSURE, SENSOR_READING_PRESSURE
}}, },
}
// 3
{ "Chirp", {
SENSOR_READING_MOISTURE,
SENSOR_READING_TEMP,
SENSOR_READING_RAW,
}},
// 4
{ "ADS1115", {
SENSOR_READING_RAW,
SENSOR_READING_RAW,
SENSOR_READING_RAW,
SENSOR_READING_RAW
}},
// 5
}; };

View file

@ -30,4 +30,3 @@
#define SENSOR_01_NAME "ADC builtin" #define SENSOR_01_NAME "ADC builtin"
#define ADC_BUILTIN_MAX 0 #define ADC_BUILTIN_MAX 0
const byte SENSOR_01_READINGS[] = { SENSOR_READING_RAW };

View file

@ -34,11 +34,6 @@
#define SENSOR_02_NAME "BME280" #define SENSOR_02_NAME "BME280"
#define BME280_MAX 2 #define BME280_MAX 2
const byte SENSOR_02_READINGS[] = {
SENSOR_READING_TEMP,
SENSOR_READING_HUMIDITY,
SENSOR_READING_PRESSURE };
Adafruit_BME280 BME280[BME280_MAX]; Adafruit_BME280 BME280[BME280_MAX];