Simplified constructor

This commit is contained in:
KTOWN
2013-01-31 18:28:56 +01:00
parent da49ff88e6
commit 91e57156e4
2 changed files with 1 additions and 17 deletions

View File

@@ -160,21 +160,6 @@ void Adafruit_TSL2561::getData (uint16_t *broadband, uint16_t *ir)
/* 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

View File

@@ -170,8 +170,7 @@ tsl2561Gain_t;
class Adafruit_TSL2561 : public Adafruit_Sensor {
public:
Adafruit_TSL2561(uint8_t addr);
Adafruit_TSL2561(uint8_t addr, int32_t sensorID);
Adafruit_TSL2561(uint8_t addr, int32_t sensorID = -1);
boolean begin(void);
/* TSL2561 Functions */