Fixed package issues
This commit is contained in:
26
example.py
26
example.py
@@ -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()
|
2
setup.py
2
setup.py
@@ -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',
|
||||
|
@@ -1,2 +1,2 @@
|
||||
from .sgp30 import SGP30
|
||||
from .crc import Crc8
|
||||
from .crc import CRC8
|
Reference in New Issue
Block a user