#include <Loom_TSL2591.h>
|
| Loom_TSL2591 (Manager &man, int address=0x29, bool useMux=false, tsl2591Gain_t light_gain=TSL2591_GAIN_MED, tsl2591IntegrationTime_t integration_time=TSL2591_INTEGRATIONTIME_100MS) |
|
uint16_t | getVisible () |
|
uint16_t | getInfrared () |
|
uint16_t | getFullSpectrum () |
|
| I2CDevice (const char *modName) |
|
bool | checkDeviceConnection () |
|
| Module (const char *modName) |
|
void | setModuleName (const char *modName) |
|
virtual const char * | getModuleName () |
|
virtual void | printModuleName (const char *message) |
|
virtual void | initialize ()=0 |
|
virtual void | measure ()=0 |
|
virtual void | package ()=0 |
|
virtual void | power_up ()=0 |
|
virtual void | power_down ()=0 |
|
virtual void | display_data () |
|
|
bool | needsReinit = false |
|
bool | moduleInitialized = true |
|
int | module_address = -1 |
|
TSL2591 Light Sensor
- Author
- Will Richards
◆ Loom_TSL2591()
Loom_TSL2591::Loom_TSL2591 |
( |
Manager & |
man, |
|
|
int |
address = 0x29 , |
|
|
bool |
useMux = false , |
|
|
tsl2591Gain_t |
light_gain = TSL2591_GAIN_MED , |
|
|
tsl2591IntegrationTime_t |
integration_time = TSL2591_INTEGRATIONTIME_100MS |
|
) |
| |
Constructs a new TSL2591 sensor
- Parameters
-
man | Reference to the manager that is used to universally package all data |
address | I2C address that is assigned to the sensor |
light_gain | Sets the gain level for how much to amplify the input |
integration_time | How long we want to integrate the data, longer time results in dimmer values |
◆ getFullSpectrum()
uint16_t Loom_TSL2591::getFullSpectrum |
( |
| ) |
|
|
inline |
Get recorded full spectrum
◆ getInfrared()
uint16_t Loom_TSL2591::getInfrared |
( |
| ) |
|
|
inline |
Get recorded infrared light
◆ getVisible()
uint16_t Loom_TSL2591::getVisible |
( |
| ) |
|
|
inline |
Get recorded visible light
◆ initialize()
void Loom_TSL2591::initialize |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ measure()
void Loom_TSL2591::measure |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ package()
void Loom_TSL2591::package |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ power_down()
void Loom_TSL2591::power_down |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ power_up()
void Loom_TSL2591::power_up |
( |
| ) |
|
|
overrideprotectedvirtual |
The documentation for this class was generated from the following files:
- C:/Users/jwilt/AppData/Local/Arduino15/packages/loom4/hardware/samd/4.5/libraries/Loom/src/Sensors/I2C/Loom_TSL2591/Loom_TSL2591.h
- C:/Users/jwilt/AppData/Local/Arduino15/packages/loom4/hardware/samd/4.5/libraries/Loom/src/Sensors/I2C/Loom_TSL2591/Loom_TSL2591.cpp