M5Unit-COLOR 0.1.0 git rev:ba99933
Loading...
Searching...
No Matches
m5::unit::tcs3472x::Calibration Struct Reference

Raw value to determine black and white. More...

#include <unit_color_utility.hpp>

Public Member Functions

 Calibration (const uint16_t br, const uint16_t wr, const uint16_t bg, const uint16_t wg, const uint16_t bb, const uint16_t wb)
 
uint8_t R8 (const Data &d) const
 Get the read value with calibration.
 
uint8_t G8 (const Data &d) const
 Get the read value with calibration.
 
uint8_t B8 (const Data &d) const
 Get the read value with calibration.
 

Static Public Member Functions

static uint8_t linear (const uint16_t raw, const uint16_t low, const uint16_t high)
 Linear interpolation in a specified range.
 

Public Attributes

uint16_t blackR {}
 
uint16_t whiteR {}
 
uint16_t blackG {}
 
uint16_t whiteG {}
 
uint16_t blackB {}
 
uint16_t whiteB {}
 

Detailed Description

Raw value to determine black and white.