Skip to main content

CircuitPython library for IS31FL3731 charlieplex LED matrices.

Project description

Introduction

Documentation Status Discord Build Status Code Style: Ruff

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adafruit_circuitpython_is31fl3731-3.4.5.tar.gz (33.3 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file adafruit_circuitpython_is31fl3731-3.4.5.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_is31fl3731-3.4.5.tar.gz
Algorithm Hash digest
SHA256 00564474a59940f502653929c41e0b32e2a9458404bbdd0954634aab718cc550
MD5 a5608249ecf3a6f3ecc86d541fcb3db9
BLAKE2b-256 d08e172a3e43289993b5b4068b0eb0ae4cde20dcab8bd126cd41efc2065ea8cb

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_is31fl3731-3.4.5-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_is31fl3731-3.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f6e9440527c95bcf508882a33164cddc616d203b20d7aad780518edf6c21c5e4
MD5 e9f6430a75234aea4f8274630a9bd88b
BLAKE2b-256 d9b8d26ade998a469358e0a860e2c657656c3265def0403b683f304e5574b6c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page