Fixed package issues
This commit is contained in:
26
example.py
26
example.py
@@ -1,14 +1,14 @@
|
|||||||
from smbus2 import SMBus
|
from smbus2 import SMBus
|
||||||
from sgp30 import SGP30
|
from sgp30 import SGP30
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
bus = SMBus(1)
|
bus = SMBus(1)
|
||||||
sensor = SGP30(bus)
|
sensor = SGP30(bus)
|
||||||
print(sensor.read_features())
|
print(sensor.read_features())
|
||||||
print(sensor.read_serial())
|
print(sensor.read_serial())
|
||||||
sensor.init_sgp()
|
sensor.init_sgp()
|
||||||
for i in range(300):
|
for i in range(300):
|
||||||
print(sensor.read_measurements())
|
print(sensor.read_measurements())
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
sensor.store_baseline()
|
sensor.store_baseline()
|
||||||
bus.close()
|
bus.close()
|
2
setup.py
2
setup.py
@@ -7,7 +7,7 @@ with open('README.md', 'r') as f:
|
|||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name='PySGP30',
|
name='PySGP30',
|
||||||
description='Library for reading data from the Sensirion SGP30',
|
description='Library for reading data from the Sensirion SGP30',
|
||||||
version='0.1.6',
|
version='0.1.8',
|
||||||
author='Connor Kneebone',
|
author='Connor Kneebone',
|
||||||
author_email='connor@sfxrescue.com',
|
author_email='connor@sfxrescue.com',
|
||||||
url='https://github.com/Conr86/PySGP30',
|
url='https://github.com/Conr86/PySGP30',
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
from .sgp30 import SGP30
|
from .sgp30 import SGP30
|
||||||
from .crc import Crc8
|
from .crc import CRC8
|
Reference in New Issue
Block a user