SI1145 class

SiLabs SI1145 sensor for visible & IR light and UV index.

See for more

Constructors

SI1145.new(I2C i2c, [int i2cAddress = si1145DefaultI2Caddress])
Creates a SI1145 sensor instance that uses the i2c bus with the optional i2cAddress.

Properties

hashCode int
The hash code for this object.
no setterinherited
i2c I2C
final
i2cAddress int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getIR() int
Returns the infrared light in nm.
getUVindex() double
Returns the UV index.
getUVindexRaw() int
Returns the raw UV index value.
getValues() → SI1145result
Returns a SI1145result with visible & IR light nm and UV index raw value.
getVisible() int
Returns the visible light in nm.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readParam(IntEnum register) int
Reads an IntEnum froma a register.
toString() String
A string representation of this object.
inherited
writeParam(IntEnum register, int value) int
Writes a value to a register.
writeParamEnum(IntEnum register, IntEnum value) int
Writes an IntEnum to a register.

Operators

operator ==(Object other) bool
The equality operator.
inherited