|
| static esp_err_t | i2c_read_uint16 (veml7700_handle_t sensor, uint8_t cmd, uint16_t *data) |
| |
| static esp_err_t | i2c_write_uint16 (veml7700_handle_t sensor, uint8_t cmd, uint16_t value) |
| |
| static uint32_t | resolution (veml7700_config_t *cfg) |
| |
| veml7700_handle_t | veml7700_i2c_create (i2c_bus_handle_t bus, i2c_addr_t dev_addr) |
| | Create a VEML7700 device handle for I²C communication.
|
| |
| veml7700_handle_t | veml7700_i2c_init (i2c_bus_handle_t bus, i2c_addr_t dev_addr) |
| | Initialize the VEML7700 sensor over I²C.
|
| |
| void | veml7700_i2c_delete (veml7700_handle_t sensor) |
| | Deinitialize the VEML7700 sensor and free resources.
|
| |
| esp_err_t | veml7700_i2c_probe (veml7700_handle_t sensor) |
| | Probe if the sensor exist on the I²C bus.
|
| |
| esp_err_t | veml7700_i2c_write_config (veml7700_handle_t sensor, veml7700_config_t *cfg) |
| | Write the configuration to the sensor.
|
| |
| esp_err_t | veml7700_i2c_read_config (veml7700_handle_t sensor, veml7700_config_t *cfg) |
| | Read the sensor configuration.
|
| |
| esp_err_t | veml7700_i2c_read_ambient_light (veml7700_handle_t sensor, ill_lx_t *val) |
| | Read ambiant light value from the sensor.
|
| |
| esp_err_t | veml7700_i2c_read_white_channel (veml7700_handle_t sensor, ill_lx_t *val) |
| | Read white channel value from the sensor.
|
| |
| esp_err_t | veml7700_i2c_read_interrupt_status (veml7700_handle_t sensor, bool *low, bool *high) |
| | Read the interrupt status from the sensor.
|
| |
I²C driver for the VEML7700 ambiant light sensor.
- Author
- Adrien Chevrier
- Copyright
-
Portions under ISC license, derived from:
-
Copyright (c) 2022 Marc Luehr.
-
-
Modifications and rewrite for new I²C interface:
-
Copyright (c) 2026 Adrien Chevrier. Under AGPL-3.0-or-later license.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.
- Version
- 0.1
- Date
- 2026-02-04