RumPi 1.0
A self-assembling C++ sensor & actuator library for the Raspberry Pi 5
TSL2591.h File Reference
#include <iostream>
#include <wiringPiI2C.h>
#include <unistd.h>
#include <stdint.h>
#include <math.h>
#include <string>
#include "BaseComponent.h"
#include "../Data/SensorLevels.h"
Include dependency graph for TSL2591.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RumPi::TSL2591
 TSL2591 high-dynamic-range digital light sensor (I2C), reading full-spectrum and IR channels to compute lux. More...
 

Namespaces

namespace  RumPi
 RumPi is the library's top-level facade.
 

Enumerations

enum class  RumPi::E_TSL2591_IntegrationTime {
  RumPi::ATIME_100MS = 0x00 , RumPi::ATIME_200MS = 0x01 , RumPi::ATIME_300MS = 0x02 , RumPi::ATIME_400MS = 0x03 ,
  RumPi::ATIME_500MS = 0x04 , RumPi::ATIME_600MS = 0x05
}
 This represents how long the sensor looks at the light in a reading. More...
 
enum class  RumPi::E_TSL2591_AmplificationGain { RumPi::GAIN_LOW = 0x00 , RumPi::GAIN_MED = 0x10 , RumPi::GAIN_HIGH = 0x20 , RumPi::GAIN_MAX = 0x30 }
 This represents the amplification level, helpful for low/high light situations. More...
 

Variables

constexpr int RumPi::TSL2591_ADDR = 0x29
 
constexpr int RumPi::TSL2591_COMMAND_BIT = 0xA0
 
constexpr int RumPi::TSL2591_ENABLE_REG = 0x00
 
constexpr int RumPi::TSL2591_CONTROL_REG = 0x01
 
constexpr int RumPi::TSL2591_C0DATA_L = 0x14
 
constexpr int RumPi::TSL2591_C1DATA_L = 0x16
 
constexpr double RumPi::TSL2591_LUX_DF = 408.0
 
constexpr double RumPi::TSL2591_LUX_COEFB = 1.64