Updated function name to match enableAutoRange in Adafruit_Sensor

This commit is contained in:
Kevin Townsend
2014-03-05 03:20:00 +01:00
parent 238928accf
commit 9bd043e5a9
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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);

View File

@ -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 */