veml6075 0.1.0

Platform-agnostic Rust driver for the VEML6075 UVA and UVB light sensor.
Documentation

Rust VEML6075 UVA and UVB Light Sensor Driver crates.io Docs Build Status

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

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.