Skip to main content

CircuitPython library for IS31FL3741 RGB LED matrices.

Project description

Introduction

Documentation Status Discord Build Status Code Style: Ruff

CircuitPython driver for the IS31FL3741 RGB Matrix 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-is31fl3741

To install system-wide (this may be required in some cases):

sudo pip3 install adafruit-circuitpython-is31fl3741

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-is31fl3741

Usage Example

Matrix:

import time
import board
import adafruit_is31fl3741

i2c = board.I2C()  # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C()  # For using the built-in STEMMA QT connector on a microcontroller
is31 = adafruit_is31fl3741.IS31FL3741(i2c)

is31.set_led_scaling(0xFF)  # turn on LEDs all the way
is31.global_current = 0xFF  # set current to max
is31.enable = True  # enable!

# light up every LED, one at a time
while True:
    for pixel in range(351):
        is31[pixel] = 255
        time.sleep(0.01)
        is31[pixel] = 0

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_is31fl3741-1.5.6.tar.gz (37.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file adafruit_circuitpython_is31fl3741-1.5.6.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_is31fl3741-1.5.6.tar.gz
Algorithm Hash digest
SHA256 8bbb0f2158de6b6e3cbc7ce76e5c152e32650cbaee107bcd54194526fb5a7d9f
MD5 ab31192c6c868d89ec1436ec8ceee094
BLAKE2b-256 a442f6d27452c7a944a5a1e6dada528347891981a808077fa880a54438447369

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_is31fl3741-1.5.6-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_is31fl3741-1.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5f7f0f79a8c8942ec9dc4ab1964e39faf10e74571ab855dfc87e91c29806cf3d
MD5 10717e3a80137999442b1d2f19778737
BLAKE2b-256 17f88e9e74531f525b91e61744a364d63030e6b03d7e32cd793cb3fb3ad113ad

See more details on using hashes here.

Supported by

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