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

File metadata

File hashes

Hashes for adafruit_circuitpython_matrixportal-3.2.12.tar.gz
Algorithm Hash digest
SHA256 8cb0035427aa1986efb6b061a81e12887b9d363232ddffffd5a5b58002332b98
MD5 d22e30156ad80d5523244beb0ca01da7
BLAKE2b-256 7b082facd394a6a63aed66b6d1fb21c1d695060c98def80b9778c3f610704bf0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_matrixportal-3.2.12-py3-none-any.whl
Algorithm Hash digest
SHA256 d4b1a98cf5c7e5c82945092053960053229164047388b302ba9c55d7a2d0cbe7
MD5 7f288546a000edb906a79ec43fb00255
BLAKE2b-256 4e7b449b5cee28f4eb762627d267fc1f093d7d89a9fdd2f4e6a964b597c36fa8

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