Rust VEML6075 UVA and UVB Light Sensor Driver
This is a platform agnostic Rust driver for the VEML6075 UVA and UVB light sensor,
based on the embedded-hal
traits.
This driver allows you to:
- Enable/disable the sensor
- Read the UVA measurement
- Read the UVB measurement
- Read the UVcomp1 measurement
- Read the UVcomp2 measurement
- Read the device id
The device
The VEML6075 senses UVA and UVB light and incorporates photodiode, amplifiers, and analog / digital circuits into a single chip using a CMOS process. When the UV sensor is applied, it is able to detect UVA and UVB intensity to provide a measure of the signal strength as well as allowing for UVI measurement. The VEML6075 provides excellent temperature compensation capability for keeping the output stable under changing temperature. VEML6075's functionality is easily operated via the simple command format of I2C (SMBus compatible) interface protocol. VEML6075's operating voltage ranges from 1.7 V to 3.6 V.
Datasheet:
Application note:
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.