Synopsis
CTL_STATUS_t tsl2561_set_integration_time(TSL2561_DRIVER_t *self,
                                          int time);
Description

tsl2561_set_integration_time sets the integration time for the TSL2561 self to time.

When time is zero, the integration time is 13.7ms, when time is one, the integration time is 101ms, and when time is 2 the integration time is 402ms.

Return Value

tsl2561_set_integration_time returns a standard status code.

Thread Safety

tsl2561_set_integration_time is thread-safe if a mutex is associated with the I2C bus the sensor is attached to.