forked from adafruit/Adafruit_TSL2561
Simplified constructor
This commit is contained in:
@@ -160,21 +160,6 @@ void Adafruit_TSL2561::getData (uint16_t *broadband, uint16_t *ir)
|
|||||||
/* CONSTRUCTORS */
|
/* CONSTRUCTORS */
|
||||||
/*========================================================================*/
|
/*========================================================================*/
|
||||||
|
|
||||||
/**************************************************************************/
|
|
||||||
/*!
|
|
||||||
Constructor
|
|
||||||
*/
|
|
||||||
/**************************************************************************/
|
|
||||||
Adafruit_TSL2561::Adafruit_TSL2561(uint8_t addr)
|
|
||||||
{
|
|
||||||
_addr = addr;
|
|
||||||
_tsl2561Initialised = false;
|
|
||||||
_tsl2561AutoGain = false;
|
|
||||||
_tsl2561IntegrationTime = TSL2561_INTEGRATIONTIME_13MS;
|
|
||||||
_tsl2561Gain = TSL2561_GAIN_1X;
|
|
||||||
_tsl2561SensorID = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/*!
|
/*!
|
||||||
Constructor
|
Constructor
|
||||||
|
@@ -170,8 +170,7 @@ tsl2561Gain_t;
|
|||||||
|
|
||||||
class Adafruit_TSL2561 : public Adafruit_Sensor {
|
class Adafruit_TSL2561 : public Adafruit_Sensor {
|
||||||
public:
|
public:
|
||||||
Adafruit_TSL2561(uint8_t addr);
|
Adafruit_TSL2561(uint8_t addr, int32_t sensorID = -1);
|
||||||
Adafruit_TSL2561(uint8_t addr, int32_t sensorID);
|
|
||||||
boolean begin(void);
|
boolean begin(void);
|
||||||
|
|
||||||
/* TSL2561 Functions */
|
/* TSL2561 Functions */
|
||||||
|
Reference in New Issue
Block a user