mirror of
https://github.com/adafruit/Adafruit_TSL2561.git
synced 2025-07-30 17:07:14 +02:00
Updated function name to match enableAutoRange in Adafruit_Sensor
This commit is contained in:
@ -217,7 +217,7 @@ boolean Adafruit_TSL2561_Unified::begin(void)
|
||||
data from the sensor
|
||||
*/
|
||||
/**************************************************************************/
|
||||
void Adafruit_TSL2561_Unified::enableAutoGain(bool enable)
|
||||
void Adafruit_TSL2561_Unified::enableAutoRange(bool enable)
|
||||
{
|
||||
_tsl2561AutoGain = enable ? true : false;
|
||||
}
|
||||
|
@ -174,7 +174,7 @@ class Adafruit_TSL2561_Unified : public Adafruit_Sensor {
|
||||
boolean begin(void);
|
||||
|
||||
/* TSL2561 Functions */
|
||||
void enableAutoGain(bool enable);
|
||||
void enableAutoRange(bool enable);
|
||||
void setIntegrationTime(tsl2561IntegrationTime_t time);
|
||||
void setGain(tsl2561Gain_t gain);
|
||||
void getLuminosity (uint16_t *broadband, uint16_t *ir);
|
||||
|
@ -69,7 +69,7 @@ void configureSensor(void)
|
||||
/* You can also manually set the gain or enable auto-gain support */
|
||||
// tsl.setGain(TSL2561_GAIN_1X); /* No gain ... use in bright light to avoid sensor saturation */
|
||||
// tsl.setGain(TSL2561_GAIN_16X); /* 16x gain ... use in low light to boost sensitivity */
|
||||
tsl.enableAutoGain(true); /* Auto-gain ... switches automatically between 1x and 16x */
|
||||
tsl.enableAutoRange(true); /* Auto-gain ... switches automatically between 1x and 16x */
|
||||
|
||||
/* Changing the integration time gives you better sensor resolution (402ms = 16-bit data) */
|
||||
tsl.setIntegrationTime(TSL2561_INTEGRATIONTIME_13MS); /* fast but low resolution */
|
||||
|
Reference in New Issue
Block a user