Library to control AS1170 LED driver via I2C on Raspberry Pi
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
AS1170 Python Library
Description
This library allows control of the AS1170 driver via I2C on Raspberry Pi, enabling LED management with simple commands like led1.on() and led1.off().
Installation
Since Raspberry Pi OS has stricter package management, it is recommended to install the library in a virtual environment to avoid conflicts.
1 Install Python Virtual Environment
If venv is not installed, run:
sudo apt install python3-venv
2 Create a Virtual Environment
Inside your project folder:
python3 -m venv venv
3 Activate the Virtual Environment
source venv/bin/activate
4 Install the Library
pip install as1170
5 Using the Library
from as1170.driver import led
led.on()
time.sleep(1)
led.off()
6 Deactivate the Virtual Environment
deactivate
Uninstallation
To remove the library from your virtual environment:
pip uninstall as1170
If you want to completely remove the virtual environment:
rm -rf venv
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file as1170-0.1.1.tar.gz.
File metadata
- Download URL: as1170-0.1.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b49ad7e28cb276fd34fae131a90414a79b9e1071e750687e3b4b07b5b392131b
|
|
| MD5 |
14385cca5c72d9ea0cbb9587fc50a0fa
|
|
| BLAKE2b-256 |
0038142585f262d13a18e2ba747b794d32b9e7f71b97afd12f6fc493e6cd1132
|
File details
Details for the file as1170-0.1.1-py3-none-any.whl.
File metadata
- Download URL: as1170-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8acf68a4e3be392c681e553be66244260749dbeb617536eaf06a6c8eea1db61a
|
|
| MD5 |
fdd01c672a68c7cd706b86c2c88e6526
|
|
| BLAKE2b-256 |
759196c940062e89966948c9ef7f405a0213d4c297050bba875fce5375348831
|