Fixed package issues

This commit is contained in:
Conr86
2019-09-17 13:30:33 +10:00
parent 23bd735a59
commit 525202cc09
5 changed files with 15 additions and 15 deletions

View File

@@ -1,14 +1,14 @@
from smbus2 import SMBus
from sgp30 import SGP30
if __name__ == "__main__":
bus = SMBus(1)
sensor = SGP30(bus)
print(sensor.read_features())
print(sensor.read_serial())
sensor.init_sgp()
for i in range(300):
print(sensor.read_measurements())
time.sleep(0.1)
sensor.store_baseline()
from smbus2 import SMBus
from sgp30 import SGP30
if __name__ == "__main__":
bus = SMBus(1)
sensor = SGP30(bus)
print(sensor.read_features())
print(sensor.read_serial())
sensor.init_sgp()
for i in range(300):
print(sensor.read_measurements())
time.sleep(0.1)
sensor.store_baseline()
bus.close()

View File

@@ -7,7 +7,7 @@ with open('README.md', 'r') as f:
setuptools.setup(
name='PySGP30',
description='Library for reading data from the Sensirion SGP30',
version='0.1.6',
version='0.1.8',
author='Connor Kneebone',
author_email='connor@sfxrescue.com',
url='https://github.com/Conr86/PySGP30',

View File

@@ -1,2 +1,2 @@
from .sgp30 import SGP30
from .crc import Crc8
from .crc import CRC8