Improvements to compensated temperature code
[EVA-2020-02-2.git] / examples / gas.py
CommitLineData
0cf10e5b
PH
1#!/usr/bin/env python
2
3import time
8ab4cd2d 4from enviroplus import gas
0cf10e5b 5
11b94e2c 6print("""gas.py - Print readings from the MICS6814 Gas sensor.
0cf10e5b
PH
7
8Press Ctrl+C to exit!
8ab4cd2d 9
0cf10e5b
PH
10""")
11
12try:
13 while True:
14 readings = gas.read_all()
15 print(readings)
16 time.sleep(1.0)
17except KeyboardInterrupt:
18 pass