Reorganised repo
This commit is contained in:
@@ -18,6 +18,6 @@ class CRC8:
|
||||
s.crc = crc & 0xFF
|
||||
return s.crc
|
||||
|
||||
#print(CRC8().hash([1,144]))
|
||||
# print(CRC8().hash([1,144]))
|
||||
#print(hex(CRC8().hash([0xBE, 0xEF])))
|
||||
#[1, 144, 76, 0, 6, 39]
|
2
setup.py
2
setup.py
@@ -15,7 +15,7 @@ setup(
|
||||
long_description=readme,
|
||||
author='Connor Kneebone',
|
||||
author_email='connor@sfxrescue.com',
|
||||
url='https://github.com/zinob/RPI_SGP30',
|
||||
url='https://github.com/Conr86/PySGP30',
|
||||
license='MIT',
|
||||
packages=find_packages(exclude=('tests')),
|
||||
install_requires=['smbus2'],
|
||||
|
@@ -8,6 +8,7 @@ from .crc import CRC8
|
||||
|
||||
DEVICE_BUS = 1
|
||||
|
||||
|
||||
class _cmds():
|
||||
"""container class for mapping between human readable names and the command values used by the sgp"""
|
||||
SGP30Cmd = namedtuple("SGP30Cmd", ["commands", "replylen", "waittime"])
|
Reference in New Issue
Block a user