Function veml7700::convert_raw_als_to_lux [−][src]
pub fn convert_raw_als_to_lux(
it: IntegrationTime,
gain: Gain,
raw_als: u16
) -> f32
Expand description
Calculate lux value for a raw ALS measurement.
For values higher than 1000 lx and 1/4 or 1/8 gain,
the following compensation formula is applied:
lux = 6.0135e-13*(lux^4) - 9.3924e-9*(lux^3) + 8.1488e-5*(lux^2) + 1.0023*lux