Skip to content

Commit

Permalink
add TVOC option
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed Jul 31, 2022
1 parent 69d2d4f commit b87b2be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Adafruit_Sensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b87b2be

Please sign in to comment.