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

File metadata

File hashes

Hashes for adafruit_circuitpython_matrixportal-3.2.11.tar.gz
Algorithm Hash digest
SHA256 028595100d412148e27f696cd83842eebd0ca132bdbc2ff5ccfee4bacb21f71f
MD5 26aad8c9bb04dae3de21c76e3f860ff2
BLAKE2b-256 bb6117550165a34efd15a3e9c408830865850576ccd4546ef08ae779fddf4351

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_matrixportal-3.2.11-py3-none-any.whl
Algorithm Hash digest
SHA256 b17936eb14ecc78e43ed0078f155839a4d8dea27a3c47c100aab3c7fd6b752a9
MD5 ff839d3c4f18bbe97923b2327270cfdf
BLAKE2b-256 9847905ddd406b9bf2c01a06b367c305844dec635b4e59c370abb8967d037f12

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