adafruit_ens160
¶
CircuitPython / Python library for ScioSense ENS160 digital multi-gas sensor
Author(s): ladyada
Implementation Notes¶
Hardware:
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://circuitpython.org/downloads
Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
Adafruit’s Register library: https://github.com/adafruit/Adafruit_CircuitPython_Register
- class adafruit_ens160.ENS160(i2c_bus: I2C, address: int = 83)¶
Driver for the ENS160 air quality sensor
- Parameters:
- property humidity_compensation: float¶
Humidity compensation setting, set this to ambient relative humidity (percentage 0-100) to get best gas sensor readings
- property mode: Literal[0, 1, 2, 240]¶
Operational Mode, can be MODE_SLEEP, MODE_IDLE, MODE_STANDARD, or MODE_RESET
- property new_data_available: bool¶
This function is wierd, it checks if there’s new data or GPR (resistances) and if so immediately reads it into the internal buffer… otherwise the status is lost!