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.7.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.7.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_is31fl3741-1.5.7.tar.gz
Algorithm Hash digest
SHA256 3949879f35e58686d96fd10264e5c11b53fdfd645bb48729bfd648e097c07001
MD5 21a00c6f030e3d56f3a77fed06c5e7fd
BLAKE2b-256 d39d926b5fdd680c08a2be8d21aefc25d3e39726ea4b944a72ed5f5a52c02d70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_is31fl3741-1.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2f7776508371a45ce55ee085a063d7ebbc8491dd5deaf1401b28e2f9e425a10b
MD5 e8d829ac30b3d14b67df9e2fd2061485
BLAKE2b-256 370ee37d018b125f2c5ac2b5704715d0f7ddc2cb3ada94b90a5c2609fa49c147

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