Skip to main content

CircuitPython helper for Adafruit MatrixPortal M4, Adafruit RGB Matrix Shield + Metro M4 Airlift Lite, and Adafruit RGB Matrix FeatherWings

Project description

Introduction

Documentation Status Discord Build Status Code Style: Ruff

CircuitPython helper for Adafruit MatrixPortal M4, Adafruit RGB Matrix Shield + Metro M4 Airlift Lite, and Adafruit RGB Matrix FeatherWings

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.

Usage Example

import time
import board
import terminalio
from adafruit_matrixportal.matrixportal import MatrixPortal

# --- Display setup ---
matrixportal = MatrixPortal(status_neopixel=board.NEOPIXEL, debug=True)

# Create a new label with the color and text selected
matrixportal.add_text(
    text_font=terminalio.FONT,
    text_position=(0, (matrixportal.graphics.display.height // 2) - 1),
    scrolling=True,
)

SCROLL_DELAY = 0.03

contents = [
    { 'text': 'THIS IS RED',  'color': '#cf2727'},
    { 'text': 'THIS IS BLUE', 'color': '#0846e4'},
]

while True:
    for content in contents:
        matrixportal.set_text(content['text'])

        # Set the text color
        matrixportal.set_text_color(content['color'])

        # Scroll it
        matrixportal.scroll_text(SCROLL_DELAY)

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_matrixportal-3.2.9.tar.gz (27.4 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_matrixportal-3.2.9.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_matrixportal-3.2.9.tar.gz
Algorithm Hash digest
SHA256 886f0d799c64b094d9f1685d9ff17d693956bc0cdc2bc0cf0ec2601ab9172f9d
MD5 58e4daa10f409a41dba7d9d80681b745
BLAKE2b-256 6fba22a56780e482b880c31e781e6b4a54609dcb3093623607ed3e5222199488

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_matrixportal-3.2.9-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_matrixportal-3.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 6b95e5ed9080c85cc4bda38f2b8ffc6aeac91d8405353e6679721ccd6152dadc
MD5 e4866c2496793119421724c3ec849da5
BLAKE2b-256 d8f81347fc59271c9685ff1051dd5edb28bedc0df9a9023c16e5564d53b3516f

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