adafruit / Adafruit_CircuitPython_LTR390

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

adafruit_ltr390 not working #5

Closed KurtHofman closed 3 years ago

KurtHofman commented 3 years ago

When I try to run the test-code I get an error.

Board : Feather S2

Code : import time import board import adafruit_ltr390

i2c = board.I2C() ltr = adafruit_ltr390.LTR390(i2c)

while True: print("UV:", ltr.uvs, "\t\tAmbient Light:", ltr.light) print("UVI:", ltr.uvi, "\t\tLux:", ltr.lux) time.sleep(1.0)

Error : code.py output: Traceback (most recent call last): File "code.py", line 6, in File "adafruit_ltr390.py", line 254, in init File "adafruit_ltr390.py", line 260, in initialize File "adafruit_ltr390.py", line 283, in _reset File "adafruit_register/i2c_bit.py", line 43, in get File "adafruit_register/i2c_bit.py", line 43, in get OSError: [Errno 5] Input/output error

Code done running.

ladyada commented 3 years ago

hi this could be a wiring error - please post in the feather s2 forums to get help :)