Library for the TI TLA202x 12-bit ADCs
Project description
Introduction
Library for the TI TLA202x 12-bit ADCs
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-tla202x
To install system-wide (this may be required in some cases):
sudo pip3 install adafruit-circuitpython-tla202x
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-tla202x
Usage Example
import board
import busio
from adafruit_tla202x import TLA2024
i2c = busio.I2c(board.SCL, board.SDA)
tla = TLA2024(i2c)
for channel in range(4):
tla.input_channel = channel
print("Channel %d: %2f V"%(channel, tla.voltage))
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for adafruit-circuitpython-tla202x-1.0.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cf7815d0011e1a94227070787746cfc3bccb02c262eaba584f9dd6e39c14e3e |
|
MD5 | d3ce21950edc92ddb7d89acd7913957f |
|
BLAKE2b-256 | 4468697f9a0c37d7e0f2afcd096619392649a1e7ab58dff764593aa104e1efa1 |
Hashes for adafruit_circuitpython_tla202x-1.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c7f2ec0ee26a934dcedec775b4cf5e017626bfcde4ab14d28be1203c7d99eb9 |
|
MD5 | d2cfa976835098b76fd0e40b48f264a1 |
|
BLAKE2b-256 | e0bafb3f29bb5772c3ca1bd9d98405fefd921fa72fea51e07950b53611ed6e78 |