CircuitPython library for IS31FL3731 charlieplex LED matrices.
Project description
Introduction
CircuitPython driver for the IS31FL3731 charlieplex IC.
This driver supports the following hardware:
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-is31fl3731
To install system-wide (this may be required in some cases):
sudo pip3 install adafruit-circuitpython-is31fl3731
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-is31fl3731
Usage Example
Matrix:
from adafruit_is31fl3731.matrix import Matrix
import board
import busio
with busio.I2C(board.SCL, board.SDA) as i2c:
display = Matrix(i2c)
display.fill(127)
Charlie Wing:
from adafruit_is31fl3731.charlie_wing import CharlieWing
import board
import busio
with busio.I2C(board.SCL, board.SDA) as i2c:
display = CharlieWing(i2c)
display.fill(127)
# Turn off pixel 4,4, change its brightness and turn it back on
display.pixel(4, 4, 0) # Turn off.
display.pixel(4, 4, 50) # Low brightness (50)
display.pixel(4, 4, 192) # Higher brightness (192)
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
File details
Details for the file adafruit-circuitpython-is31fl3731-3.3.11.tar.gz
.
File metadata
- Download URL: adafruit-circuitpython-is31fl3731-3.3.11.tar.gz
- Upload date:
- Size: 35.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7745e20e509826285d30a79768af1fce131530c8404ca7f39903cd32ff0a4a81 |
|
MD5 | c0d15e9f1ff96867797b4ffaf0720125 |
|
BLAKE2b-256 | e8aaf88945dade3fabed31c38b2f665cb1d29667b0d50eeb88a66f9624721c39 |
File details
Details for the file adafruit_circuitpython_is31fl3731-3.3.11-py3-none-any.whl
.
File metadata
- Download URL: adafruit_circuitpython_is31fl3731-3.3.11-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96bb5571b316e93e21008f7b1d303c61a6156bac986c0203094e50bda18cf0b1 |
|
MD5 | 365ed664a085d31b0485b42487d04988 |
|
BLAKE2b-256 | 14d0aebaac169ed4f758492cdb6c79224acf6b56b89053c0b51b57277002069d |