Skip to content

pimoroni/Pimoroni_CircuitPython_MICS6814

Repository files navigation

Introduction

Documentation Status Discord Build Status Code Style: Black

Driver for the MICS6814 Gas sensor

Dependencies

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.

Usage Example

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)

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

About

CircuitPython driver for the MICS6814 analog gas sensor

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages