ThinkingSkins - MossSolar Facade  Version 1.0
 All Classes Files Functions Variables Pages
Adafruit_TSL2561_Unified Class Reference
Inheritance diagram for Adafruit_TSL2561_Unified:
Adafruit_Sensor

Public Member Functions

 Adafruit_TSL2561_Unified (uint8_t addr, int32_t sensorID=-1)
 
boolean begin (void)
 
void enableAutoRange (bool enable)
 Enables or disables the auto-gain settings when reading data from the sensor.
 
void setIntegrationTime (tsl2561IntegrationTime_t time)
 
void setGain (tsl2561Gain_t gain)
 
void getLuminosity (uint16_t *broadband, uint16_t *ir)
 Gets the broadband (mixed lighting) and IR only values from the TSL2561, adjusting gain if auto-gain is enabled.
 
uint32_t calculateLux (uint16_t broadband, uint16_t ir)
 
void getEvent (sensors_event_t *)
 Gets the most recent sensor event.
 
void getSensor (sensor_t *)
 Gets the sensor_t data.
 
- Public Member Functions inherited from Adafruit_Sensor
void constructor ()
 

Constructor & Destructor Documentation

Adafruit_TSL2561_Unified::Adafruit_TSL2561_Unified ( uint8_t  addr,
int32_t  sensorID = -1 
)

Constructor

Member Function Documentation

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: