Crates.io | veml7700 |
lib.rs | veml7700 |
version | 0.2.0 |
source | src |
created_at | 2021-07-15 11:18:18.764947 |
updated_at | 2024-01-29 21:54:12.266531 |
description | Platform-agnostic Rust driver for the VEML7700 High Accuracy Ambient Light Sensor |
homepage | |
repository | https://github.com/no111u3/veml7700 |
max_upload_size | |
id | 423059 |
size | 62,863 |
This is a platform agnostic Rust driver for the VEML7700 high accuracy ambient
light sensors using the embedded-hal
traits. It's alternative version of
veml6030
crate that uses the micromath
library and 32 bit precision for sensor correction.
This driver allows you to:
enable()
.read_lux()
.read_white()
.read_raw()
.convert_raw_als_to_lux()
.set_gain()
.set_integration_time()
.set_fault_count()
.enable_power_saving()
.enable_interrupts()
.read_interrupt_status()
.set_high_threshold_lux()
.calculate_raw_threshold_value()
.The Vishay VEML7700 is a high accuracy ambient light digital 16-bit resolution sensor in a miniature transparent package. It includes a high sensitive photodiode, a low noise amplifier, a 16-bit A/D converter and support an easy to use I2C bus communication interface and additional interrupt feature. The ambient light result is as digital value available.
Datasheet:VEML7700
Application Note:
To use this driver, import this crate and an embedded_hal
implementation,
then instantiate the device.
VEML7700 expose interface over I2C.
For questions, issues, feature requests, and other changes, please file an issue in the github project.
Licensed under either of
at your option.
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.