Skip to content

CircuitPython driver for the IS31FL3731 charlieplex IC

License

Notifications You must be signed in to change notification settings

adafruit/Adafruit_CircuitPython_IS31FL3731

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0cd04eb · Jan 16, 2025
Jan 20, 2023
Jan 12, 2021
Jul 29, 2024
Oct 7, 2024
Jul 29, 2024
Jul 29, 2024
Feb 16, 2023
Jul 29, 2024
Jan 16, 2025
Jan 12, 2021
Jul 9, 2016
Jul 29, 2024
Jan 12, 2021
May 13, 2024
Aug 16, 2022
Aug 9, 2022
Jul 29, 2024

Repository files navigation

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.