adafruit / Adafruit_CircuitPython_SI1145

CircuitPython helper library for the SI1145 Digital UV Index IR Visible Light Sensor
MIT License
0 stars 5 forks source link

Fix UV index #10

Closed caternuson closed 2 years ago

caternuson commented 2 years ago

For #9. Should hopefully get UV index reading working.

Main things done:

Tested:

Adafruit CircuitPython 7.3.2 on 2022-07-20; Adafruit QT Py M0 with samd21e18
>>> import board
>>> import adafruit_si1145
>>> si = adafruit_si1145.SI1145(board.I2C())
>>> si.uv_index
0.08
>>> si.uv_index
0.78
>>> si.uv_index
5.09
>>>