API Reference

adafruit_si1145

CircuitPython helper library for the SI1145 Digital UV Index IR Visible Light Sensor

  • Author(s): Carter Nelson

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_si1145.SI1145(i2c: I2C, address: int = 96)

Driver for the SI1145 UV, IR, Visible Light Sensor.

property als: Tuple[int, int]

A two tuple of the Ambient Light System (ALS) visible and infrared raw sensor values.

property als_enabled: bool

The Ambient Light System enabled state.

property als_ir_range_high: bool

IR high range value

property als_range_high: Tuple[bool, bool]

Visbile and IR high range values

property als_vis_range_high: bool

Visible high range value

clear_error() None

Clear any existing error code.

property device_info: Tuple[int, int, int]

A three tuple of part, revision, and sequencer ID

property gain: Tuple[int, int]

Visble and IR gain values

property ir_gain: int

IR gain value

reset() None

Perform a software reset of the firmware.

property uv_index: float

The UV Index value

property uv_index_enabled: bool

The UV Index system enabled state

property vis_gain: int

Visible gain value