CCS811
- Adafruit CCS811 Air Quality Sensor Breakout - VOC and eCO2¶
This library supports the use of the CCS811 air quality sensor in CircuitPython.
Author(s): Dean Miller for Adafruit Industries
Notes:
#. Datasheet
-
class
adafruit_ccs811.
CCS811
(i2c_bus, address=90)[source]¶ CCS811 gas sensor driver.
Parameters: -
data_ready
¶ True when new data has been read.
-
eco2
¶ Equivalent Carbon Dioxide in parts per million. Clipped to 400 to 8192ppm.
-
error
¶ True when an error has occured.
-
error_code
¶ Error code
-
set_environmental_data
(humidity, temperature)[source]¶ Set the temperature and humidity used when computing eCO2 and TVOC values.
Parameters:
-
set_interrupt_thresholds
(low_med, med_high, hysteresis)[source]¶ Set the thresholds used for triggering the interrupt based on eCO2. The interrupt is triggered when the value crossed a boundary value by the minimum hysteresis value.
Parameters:
-
temp_offset
= 0.0¶ Temperature offset.
-
temperature
¶ Temperature based on optional thermistor in Celsius.
-
tvoc
¶ Total Volatile Organic Compound in parts per billion.
-