Dezibot 4
ColorDetection Class Reference

#include <ColorDetection.h>

Public Member Functions

void beginAutoMode ()
 Start RBGW sensor with default configuration. More...
 
void configure (VEML_CONFIG config)
 Begin RGBW sensor with passed configuration values. More...
 
uint16_t getColorValue (color color)
 Get color value of RGBW sensor. More...
 
float getAmbientLight ()
 Get the ambient light in lux. More...
 

Protected Attributes

VEML6040 rgbwSensor
 

Detailed Description

Definition at line 55 of file ColorDetection.h.

Member Function Documentation

◆ beginAutoMode()

void ColorDetection::beginAutoMode ( )

Start RBGW sensor with default configuration.

Definition at line 3 of file ColorDetection.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ configure()

void ColorDetection::configure ( VEML_CONFIG  config)

Begin RGBW sensor with passed configuration values.

Parameters
configconfiguration for VEML6040 sensor

Definition at line 11 of file ColorDetection.cpp.

+ Here is the caller graph for this function:

◆ getAmbientLight()

float ColorDetection::getAmbientLight ( )

Get the ambient light in lux.

Returns
float ambient light in lux.

Definition at line 59 of file ColorDetection.cpp.

◆ getColorValue()

uint16_t ColorDetection::getColorValue ( color  color)

Get color value of RGBW sensor.

Parameters
colorRGBW color which to get
Returns
uint16_t color value

Definition at line 43 of file ColorDetection.cpp.

Member Data Documentation

◆ rgbwSensor

VEML6040 ColorDetection::rgbwSensor
protected

Definition at line 86 of file ColorDetection.h.


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