|
M5Unit-LIGHT 0.0.2 git rev:6d734f0
|
Measurement data group. More...
#include <unit_BH1750FVI_data.hpp>
Public Member Functions | |
| float | lux () const |
| Illuminance in lx. | |
Public Attributes | |
| uint16_t | raw {} |
| Raw 16-bit ADC value (MSB first) | |
| uint8_t | mtreg {MTREG_DEFAULT} |
| MTreg value in effect at the time of measurement. | |
| Resolution | resolution {Resolution::High} |
| Resolution in effect at the time of measurement. | |
Measurement data group.
|
inline |
Illuminance in lx.
lux = raw / 1.2 * (69 / mtreg) [/ 2 if High2]