CTL_STATUS_t isl29023_initialize_i2c(ISL29023_DRIVER_t *self,
                                     CTL_I2C_BUS_t *bus,
                                     int addr);

isl29023_initialize_i2c initializes the light sensor interface self with methods to communicate with an ISL29023 ambient light sensor on the I2C bus bus with 8-bit I2C address addr.

Once the light sensor interface is initialized, you can use all standard light sensor methods from the sensor API on the interface self->core.

Return Value

isl29023_initialize_i2c returns a standard status code.

Thread Safety

isl29023_initialize_i2c is thread-safe if a mutex is associated with the I2C bus bus.

See Also