Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 1.77 KB

README.rst

File metadata and controls

61 lines (43 loc) · 1.77 KB

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.