From 6ac79f2978d50181bd2fb19d1baf5ba766ff1a6a Mon Sep 17 00:00:00 2001 From: Marcus Date: Thu, 5 Dec 2024 00:34:28 +0100 Subject: [PATCH] sensor wip --- Arduino/CanGrow/include/Sensor/01_ADC_builtin.h | 5 ++++- Arduino/CanGrow/include/Sensor/02_BME280.h | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Arduino/CanGrow/include/Sensor/01_ADC_builtin.h b/Arduino/CanGrow/include/Sensor/01_ADC_builtin.h index a400d0c..fd06dc7 100644 --- a/Arduino/CanGrow/include/Sensor/01_ADC_builtin.h +++ b/Arduino/CanGrow/include/Sensor/01_ADC_builtin.h @@ -28,5 +28,8 @@ */ #define SENSOR_01_NAME "ADC builtin" -#define ADC_BUILTIN_MAX 0 +#define SENSOR_01_MAXUNITS 0 +short Sensor01_AnalogRaw() { + return 2; +} diff --git a/Arduino/CanGrow/include/Sensor/02_BME280.h b/Arduino/CanGrow/include/Sensor/02_BME280.h index d887a06..5806d2d 100644 --- a/Arduino/CanGrow/include/Sensor/02_BME280.h +++ b/Arduino/CanGrow/include/Sensor/02_BME280.h @@ -32,10 +32,10 @@ #define SENSOR_02_NAME "BME280" -#define BME280_MAX 2 +#define SENSOR_02_MAXUNITS 2 -Adafruit_BME280 BME280[BME280_MAX]; +Adafruit_BME280 BME280[SENSOR_02_MAXUNITS]; void Sensor_Bme280_Init(byte sensorId) {