Skip to content

Register setting issue #9

Closed
Closed
@caternuson

Description

@caternuson

With code from #8, which has been merged, so opening new issue:

Adafruit CircuitPython 7.3.2 on 2022-07-20; Adafruit QT Py M0 with samd21e18
>>> import board, adafruit_si1145
>>> si1145 = adafruit_si1145.SI1145(board.I2C())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "adafruit_si1145.py", line 84, in __init__
  File "adafruit_si1145.py", line 127, in uv_index_enabled
  File "adafruit_register/i2c_struct.py", line 43, in __set__
TypeError: 'int' object is not iterable
>>> 

I think these need to be tuples?

self._ucoeff_0 = 0x00
self._ucoeff_1 = 0x02
self._ucoeff_2 = 0x89
self._ucoeff_3 = 0x29

Metadata

Metadata

Assignees

No one assigned

    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