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.

This library extends the CircuitPython PortalBase library - see library for additional information.

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.10.tar.gz (27.5 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.10.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_matrixportal-3.2.10.tar.gz
Algorithm Hash digest
SHA256 af27f2715fd0a6cd3f7afa2c452045e075a2437734804b5a5ca3eb643ff47f2a
MD5 7dc104986d275f75a02589765c02716d
BLAKE2b-256 1ef7a3a2af246284af656f2a00a90d7d55a377ed7a9aa99144bab3024a1280ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_matrixportal-3.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 f0200444a715b8848f713363c6c810a9573ab1b32414962380d4b6e9cbecb8e1
MD5 77264631970779dd89f064565afd6517
BLAKE2b-256 e2e0e02610158c8a9ac8108d7573a9e1e8a72b4cc6c6c6fb1c6d5426f8c6572a

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