Simple test

Ensure your device works with this simple test.

examples/is31fl3741_simpletest.py
 1# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
 2# SPDX-License-Identifier: MIT
 3
 4import time
 5
 6import board
 7
 8import adafruit_is31fl3741
 9
10i2c = board.I2C()  # uses board.SCL and board.SDA
11# i2c = board.STEMMA_I2C()  # For using the built-in STEMMA QT connector on a microcontroller
12is31 = adafruit_is31fl3741.IS31FL3741(i2c)
13
14is31.set_led_scaling(0xFF)  # turn on LEDs all the way
15is31.global_current = 0xFF  # set current to max
16is31.enable = True  # enable!
17
18# light up every LED, one at a time
19while True:
20    for pixel in range(351):
21        is31[pixel] = 255
22        time.sleep(0.01)
23        is31[pixel] = 0

Matrix Examples

Other examples working on matrix display.

Pillow Examples

Examples that utilize the Python Imaging Library (Pillow) for use on (Linux) computers that are using CPython with Adafruit Blinka to support CircuitPython libraries. CircuitPython does not support PIL/pillow (python imaging library)!