mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ce76125a22
The SI1133 from Silicon Labs is a UV Index Sensor and Ambient Light Sensor in a small 2x2 mm DFN package. The sensor can measure independently ultra violet (UV) light, infra red (IR) light and ambient light, however the ambient light is also influenced by the IR light requiring compensation from the IR readings. The SI1133 is quite different from other Silicon Labs chips in RIOT OS and therefore needs its own driver. In particular, the SI1133 has 7 different photodiode configurations to read but only 6 channels to read them in parallel so only some channels can be read each time. This patch implements a new driver allowing to read the data directly and a saul interface for the three kinds of light source. There are many configuration options including interrupts and continous modes that are left out of this initial driver.
510 B
510 B
Si1133 driver test
Test application for the Silicon Labs Si1133 I2C device.
Usage
This test will initialize the Si1133 device defined in the si1133_params.h
header, which can be override by the board or in CLFAGS by setting the following
macros:
SI1133_PARAM_I2C_DEV
the I2C device to use, by defaultI2C_DEV(0)
.SI1133_PARAM_ADDR
the I2C address of the Si1133, either 0x52 or 0x55.
The automated test checks that the Si1133 responds and all sensor values can be read in blocking mode.