Skip to main content

full_scale_milli_lux

Function full_scale_milli_lux 

Source
pub fn full_scale_milli_lux(range_number: u8) -> Option<u32>
Expand description

Returns the full-scale illuminance, in milli-lux, of a range number.

Full scale is the 12-bit mantissa’s maximum, 4095, at that range’s LSB size, so 40.95 lux at range 0 up to 83865.60 lux at range 11.

§Arguments

  • range_number - the range number, 0 to 11.

§Returns

The full-scale illuminance in milli-lux, or None for the automatic and reserved range numbers, which have no single full scale.