This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GPSDecoder: | |
def __init__(self, i2c=None): | |
if i2c is None: | |
from machine import I2C | |
i2c = I2C(0, mode=I2C.MASTER, pins=('G9', 'G8')) | |
self.i2c = i2c | |
self.buf = "" | |
self.clear() | |
def clear(self): | |
self.fixStatus = self.lat = self.lng = self.utcTime = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
CCS811 Air Quality Sensor Example Code | |
Author: Jiemde ( jiemde@live.be) | |
Sensiot | |
Date: November 2017 | |
License: This code is public domain | |
Based on Sparkfuns Example code written by Nathan Seidle | |
Read the TVOC and CO2 values from the LGAQS HT11 module ( CCS811 + Si7021 ) | |
A new sensor requires at 48-burn in. Once burned in a sensor requires | |
20 minutes of run in before readings are considered good. |