|
M5Unit-LIGHT 0.1.0 git rev:1ddbe92
|
Measurement data group. More...
#include <unit_Light_data.hpp>
Public Member Functions | |
| float | normalized () const |
| Normalized brightness in 0..100 (%), where 0% = dark reference and 100% = bright reference. | |
Public Attributes | |
| uint16_t | analog_raw {} |
| Raw ADC value from the photoresistor path. | |
| bool | digital {} |
| Comparator threshold output (active level is board-specific; check it on the board) | |
| uint16_t | dark {DEFAULT_DARK} |
| ADC reading captured when the sensor was covered (dark reference) | |
| uint16_t | bright {DEFAULT_BRIGHT} |
| ADC reading captured when the sensor was lit (bright reference) | |
Measurement data group.
|
inline |
Normalized brightness in 0..100 (%), where 0% = dark reference and 100% = bright reference.