Introduction¶
CircuitPython driver for VEML7700 high precision I2C ambient light sensor.
Dependencies¶
This driver depends on:
Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.
Installing from PyPI¶
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:
pip3 install adafruit-circuitpython-veml7700
To install system-wide (this may be required in some cases):
sudo pip3 install adafruit-circuitpython-veml7700
To install in a virtual environment in your current project:
mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-veml7700
Usage Example¶
import time
import board
import adafruit_veml7700
i2c = board.I2C() # uses board.SCL and board.SDA
veml7700 = adafruit_veml7700.VEML7700(i2c)
while True:
print("Ambient light:", veml7700.light)
time.sleep(0.1)
Documentation¶
API documentation for this library can be found on Read the Docs.
For information on building library documentation, please check out this guide.
Contributing¶
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Table of Contents¶
Examples
API Reference
adafruit_veml7700
VEML7700
VEML7700.gain_value()
VEML7700.integration_time_value()
VEML7700.light
VEML7700.light_gain
VEML7700.light_high_threshold
VEML7700.light_integration_time
VEML7700.light_interrupt
VEML7700.light_interrupt_high
VEML7700.light_interrupt_low
VEML7700.light_low_threshold
VEML7700.light_shutdown
VEML7700.lux
VEML7700.resolution()
VEML7700.white
Related Products