#light #sensor #i2c #driver #embedded-hal-driver

no-std max44009

Platform-agnostic Rust driver for the MAX44009 ambient light sensor

1 unstable release

Uses old Rust 2015

0.1.0 Oct 19, 2018

#15 in #light

MIT/Apache

11KB
121 lines

Rust Max44009 Ambient Light Sensor crates.io Docs Build Status

This is a platform agnostic Rust driver for the MAX44009 ambient light sensor, based on the embedded-hal traits.

This driver allows you to:

  • Read lux measurement.
  • Set the measurement mode.

The device

The MAX44009 ambient light sensor features an I2C digital output that is ideal for a number of portable applications such as smartphones, notebooks, and industrial sensors. At less than 1μA operating current, it is the lowest power ambient light sensor in the industry and features an ultra-wide 22-bit dynamic range from 0.045 lux to 188,000 lux. Low-light operation allows easy operation in dark-glass applications. The on-chip photodiode's spectral response is optimized to mimic the human eye's perception of ambient light and incorporates IR and UV blocking capability. The adaptive gain block automatically selects the correct lux range to optimize the counts/lux.

Datasheet:

License

Licensed under either of

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~82KB