LTR-329 Driver
A driver for the LTR-329 Ambient Light Sensor (ALS).
Uses the I2C traits from the embedded-hal crate to be platform agnostic.
The device can be configured to use different measurement rates, integration times, and gain settings when capturing the measurement data. The measured data can then be read out as a lux value.
LTR-329 Device
The LTR-329 used I2C communication, using the non-configurable address 0x29. The sensor provides a linear response over a dynamic range from 0.01 lux to 64k lux.
The datasheet for the LTR-329 can be found here.
Usage
For an example application which uses the sensor, see the rp2040 example in the examples folder.
The example application uses the Embassy framework, but this is not
necessary. Any HAL which implements the required I2C trait from the embedded-hal crate should work.
Contributing
Contributions are very welcome, just file an issue or create a pull request with the desired changes :).
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
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.