Driver for the MICS6814 Gas sensor
This driver depends on:
Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.
import time
import analogio
import digitalio
import board
from pimoroni_mics6814 import Pimoroni_MICS6814
PIN_NH3 = analogio.AnalogIn(board.A0)
PIN_RED = analogio.AnalogIn(board.A1)
PIN_OX = analogio.AnalogIn(board.A2)
PIN_ENABLE = digitalio.DigitalInOut(board.A4)
MICS6814 = Pimoroni_MICS6814(PIN_OX, PIN_RED, PIN_NH3, PIN_ENABLE)
while True:
print(MICS6814.read_all())
time.sleep(1.0)
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.