From b87b2be66beda5b9d45e4b1d33fde50fbc69de44 Mon Sep 17 00:00:00 2001 From: lady ada Date: Sun, 31 Jul 2022 15:58:56 -0400 Subject: [PATCH] add TVOC option --- Adafruit_Sensor.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Adafruit_Sensor.h b/Adafruit_Sensor.h index 087eda5..432cfa6 100755 --- a/Adafruit_Sensor.h +++ b/Adafruit_Sensor.h @@ -66,7 +66,8 @@ typedef enum { SENSOR_TYPE_OBJECT_TEMPERATURE = (14), SENSOR_TYPE_VOLTAGE = (15), SENSOR_TYPE_CURRENT = (16), - SENSOR_TYPE_COLOR = (17) + SENSOR_TYPE_COLOR = (17), + SENSOR_TYPE_TVOC = (18) } sensors_type_t; /** struct sensors_vec_s is used to return a vector in a common format. */ @@ -134,6 +135,7 @@ typedef struct { float relative_humidity; /**< relative humidity in percent */ float current; /**< current in milliamps (mA) */ float voltage; /**< voltage in volts (V) */ + float tvoc; /**< Total Volatile Organic Compounds, in ppb */ sensors_color_t color; /**< color in RGB component values */ }; ///< Union for the wide ranges of data we can carry } sensors_event_t;