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

File metadata

File hashes

Hashes for adafruit_circuitpython_is31fl3741-1.5.8.tar.gz
Algorithm Hash digest
SHA256 d06ec8a63fa9ec3e5326f69e00bb7243e309c7536eeb5aef216c02a58a16caa2
MD5 ecc961fbf86a621056c4bb7b5db9721b
BLAKE2b-256 8ba912e209357d442706783f812571f86e3ab6e9c3ec0d6a99db9de0fb0b1d3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_is31fl3741-1.5.8-py3-none-any.whl
Algorithm Hash digest
SHA256 4f1723e576693cec839304dd9e2f9af99a38caf53e65a033405a2c58d469e3e4
MD5 0d21f19bfa1864299c1fd61033bd91a5
BLAKE2b-256 9c432b445e906ff94962d85e50af735446c4046e6895d596f7fdae129c3694e1

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