adafruit / Adafruit_CircuitPython_LTR390

CircuitPython library for the LTR390 ambient light and UV sensor
MIT License
7 stars 2 forks source link

Update _reset() #13

Closed caternuson closed 2 years ago

caternuson commented 2 years ago

Potential fix for #11.

Tried various ways to "reset" the I2C bus, but none were successful. So did something simple instead. This PR is not an elegant solution, but does resolve issue.

Adafruit CircuitPython 7.0.0 on 2021-09-20; Adafruit Feather RP2040 with rp2040
>>> import board
>>> import adafruit_ltr390
>>> ltr = adafruit_ltr390.LTR390(board.I2C())
>>> ltr.light
631
>>> ltr.light
7
>>> 
ladyada commented 2 years ago

🤷‍♂️

caternuson commented 2 years ago

:shrug: