adafruit_ccs811
This library supports the use of the CCS811 air quality sensor in CircuitPython.
Author(s): Dean Miller for Adafruit Industries
Hardware:
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
Notes:
#. Datasheet
CCS811 gas sensor driver.
Quickstart: Importing and using the CCS811
Here is an example of using the
CCS811
class. First you will need to import the libraries to use the sensorimport board import adafruit_ccs811Once this is done you can define your
board.I2C
object and define your sensor objecti2c = board.I2C() # uses board.SCL and board.SDA ccs811 = adafruit_ccs811.CCS811(i2c)Now you have access to the
eco2
andtvoc
attributes.eco2 = ccs811.eco2 tvoc = ccs811.tvoc
The property reads and returns the current baseline value. The returned value is packed into an integer. Later the same integer can be used in order to set a new baseline.
True when new data has been read.
Equivalent Carbon Dioxide in parts per million. Clipped to 400 to 8192ppm.
True when an error has occured.
Error code
Initiate a software reset.
Set the temperature and humidity used when computing eCO2 and TVOC values.
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.
Temperature offset.
Deprecated since version 1.1.5: Hardware support removed by vendor
Temperature based on optional thermistor in Celsius.
Total Volatile Organic Compound in parts per billion.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4