We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cda8882 + 5d8bb78 commit 52b0a1fCopy full SHA for 52b0a1f
README.rst
@@ -63,11 +63,23 @@ Usage Example
63
.. code-block:: python
64
65
import time
66
+ import analogio
67
+ import digitalio
68
+ import board
69
from pimoroni_mics6814 import Pimoroni_MICS6814
70
71
+ PIN_NH3 = analogio.AnalogIn(board.A0)
72
+ PIN_RED = analogio.AnalogIn(board.A1)
73
+ PIN_OX = analogio.AnalogIn(board.A2)
74
+ PIN_ENABLE = digitalio.DigitalInOut(board.A4)
75
+
76
+ MICS6814 = Pimoroni_MICS6814(PIN_OX, PIN_RED, PIN_NH3, PIN_ENABLE)
77
78
while True:
79
+ print(MICS6814.read_all())
80
time.sleep(1.0)
81
82
83
Contributing
84
============
85
0 commit comments