Adafruit_TSL2561_Unified::Adafruit_TSL2561_Unified |
( |
uint8_t |
addr, |
|
|
int32_t |
sensorID = -1 |
|
) |
| |
boolean Adafruit_TSL2561_Unified::begin |
( |
void |
| ) |
|
Initializes I2C and configures the sensor (call this function before doing anything else)
uint32_t Adafruit_TSL2561_Unified::calculateLux |
( |
uint16_t |
broadband, |
|
|
uint16_t |
ir |
|
) |
| |
Converts the raw sensor values to the standard SI lux equivalent. Returns 0 if the sensor is saturated and the values are unreliable.
void Adafruit_TSL2561_Unified::setGain |
( |
tsl2561Gain_t |
gain | ) |
|
Adjusts the gain on the TSL2561 (adjusts the sensitivity to light)
void Adafruit_TSL2561_Unified::setIntegrationTime |
( |
tsl2561IntegrationTime_t |
time | ) |
|
Sets the integration time for the TSL2561
The documentation for this class was generated from the following files:
- H:/Thinking Moss/thinkingSkins_Moss/Adafruit_TSL2561_U/Adafruit_TSL2561_U.h
- H:/Thinking Moss/thinkingSkins_Moss/Adafruit_TSL2561_U/Adafruit_TSL2561_U.cpp