ltr-329 0.1.2

I2C-based driver for an LTR329 Ambient Light Sensor (ALS).
Documentation
# LTR-329 Driver

[![crates.io](https://img.shields.io/crates/v/ltr-329.svg)](https://crates.io/crates/ltr-329)
[![crates.io](https://img.shields.io/crates/l/ltr-329.svg)](https://crates.io/crates/ltr-329)
[![API](https://docs.rs/ltr-329/badge.svg)](https://docs.rs/ltr-329)

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](https://optoelectronics.liteon.com/upload/download/DS86-2014-0006/LTR-329ALS-01_DS_V1.8.PDF).

## Usage

For an example application which uses the sensor, see the rp2040 example in the examples folder.
The example application uses the [Embassy framework](https://github.com/embassy-rs/embassy), 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]LICENSE-APACHE or
   http://www.apache.org/licenses/LICENSE-2.0)
 * MIT license ([LICENSE-MIT]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.


[`embedded-hal`]: https://github.com/rust-embedded/embedded-hal