Closed caternuson closed 2 years ago
@caternuson I verify the code vs the post in the forum, maybe when they post the solution they meant
self._reset_bit = False
If not the code looks exactly the same, so not sure what they did.
Thanks
I did some tests, this are my findings.
Try... Except
statement and reset the sensorACK
is not received, as mentioned in the comment in the codeMy biggest concern removing the try... except.. is why we are not catching the exception, the REPL shows as
OSerror `but the exceptions just do not work, and library fails here
https://github.com/adafruit/Adafruit_CircuitPython_LTR390/blob/99cc48248d8a1de6d09dc593039e578eb3c97a57/adafruit_ltr390.py#L309
Fixed by #13
Adafruit CircuitPython 7.1.0-beta.1 on 2021-11-30; Adafruit Feather ESP32S2 with ESP32S2
>>> import board
>>> import adafruit_ltr390
>>> ltr = adafruit_ltr390.LTR390(board.I2C())
>>> ltr.light
509
>>> ltr.light
2
>>>
bless
Some discussion and possible solution here: https://forums.adafruit.com/viewtopic.php?f=60&t=178596
Can demonstrate issue by simply trying to setup an LTR:
Sanity check with QT Py M0: