Introduction
Driver for the AS726x spectral sensors
Installation and 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-as726x
To install system-wide (this may be required in some cases:
sudo pip3 install adafruit-circuitpython-as726x
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-as726x
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
adafruit_as726x
AS726x
AS726x.MODE_0
AS726x.MODE_1
AS726x.MODE_2
AS726x.ONE_SHOT
AS726x.driver_led
AS726x.indicator_led
AS726x.driver_led_current
AS726x.indicator_led_current
AS726x.conversion_mode
AS726x.gain
AS726x.integration_time
AS726x.start_measurement()
AS726x.read_channel()
AS726x.read_calibrated_value()
AS726x.data_ready
AS726x.temperature
AS726x.violet
AS726x.blue
AS726x.green
AS726x.yellow
AS726x.orange
AS726x.red
AS726x.raw_violet
AS726x.raw_blue
AS726x.raw_green
AS726x.raw_yellow
AS726x.raw_orange
AS726x.raw_red
AS726x_I2C
AS726x_UART