upm  1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
Public Member Functions
SI1132 Class Reference

API for Si1132 UV and Visible Light Sensor. More...

Detailed Description

The Silicon Labs Si1132 is a low-power, ultraviolet (UV) index, and ambient light sensor with I2C digital interface and programmable-event interrupt output.

upm::SI1132 lightSensor(DEFAULT_I2C_BUS);
while (true) {
float value = lightSensor.getVisibleLux();
std::cout << "Light level = " << value << " lux" << std::endl;

Public Member Functions

 SI1132 (int bus)
 ~SI1132 ()
uint16_t getVisibleRaw ()
double getVisibleLux ()
virtual const char * getModuleName ()

Constructor & Destructor Documentation

SI1132 ( int  bus)

Instanciates a Si1132 object

busnumber of used bus

Here is the caller graph for this function:

~SI1132 ( )

Si1132 object destructor, basicaly it close i2c connection.

Member Function Documentation

uint16_t getVisibleRaw ( )

Read the raw visible light value

Here is the caller graph for this function:

double getVisibleLux ( )

Read the lux value

Implements ILightSensor.

Here is the call graph for this function:

virtual const char* getModuleName ( )

Returns name of module. This is the string in library name after libupm_

name of module

Implements IModuleStatus.

Here is the call graph for this function:

Inheritance diagram for SI1132:
Inheritance graph
Collaboration diagram for SI1132:
Collaboration graph

The documentation for this class was generated from the following files: