Skip to content

Error in python library? #5

@reddwarfff

Description

@reddwarfff

Trying to use the sensor but when I try and run read-heartbeat.py, I gt the following error:
Traceback (most recent call last):
File "/home/pi/max30105-python/examples/read-heartbeat.py", line 10, in
max30105.setup()
File "/usr/local/lib/python3.5/dist-packages/max30105/init.py", line 319, in setup
self.soft_reset(timeout=timeout)
File "/usr/local/lib/python3.5/dist-packages/max30105/init.py", line 353, in soft_reset
while self._max30105.get('MODE_CONFIG').reset and time.time() - t_start < timeout:
File "/usr/local/lib/python3.5/dist-packages/i2cdevice/init.py", line 232, in get
result[field] = self.get_field(register, field)
File "/usr/local/lib/python3.5/dist-packages/i2cdevice/init.py", line 247, in get_field
value = field.adapter._decode(value)
File "/usr/local/lib/python3.5/dist-packages/i2cdevice/adapter.py", line 26, in _decode
raise ValueError("{} not in lookup table".format(value))
ValueError: 0 not in lookup table

Please help!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions