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: Black

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.1.12.tar.gz (30.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.1.12.tar.gz.

File metadata

File hashes

Hashes for adafruit-circuitpython-matrixportal-3.1.12.tar.gz
Algorithm Hash digest
SHA256 cb344cd2913a6fa52e102af9d17b908684154b8a76782761c9e67c098a00b28c
MD5 4086f9b0d8b60413f689e9f204e34562
BLAKE2b-256 885abda6df612a0703ca374cd8d3c621f2ff6e3c003bc2825d896afe4e3cc7ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_matrixportal-3.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 7dd04fece643ef709749540722e596c69e9b18010f4fd4ca7280ee3bf1aaf919
MD5 a46d455f8069dab25c79c9403e8ca4c8
BLAKE2b-256 db9c8a79d1f1f6bf44b8c7b004f313c188a4b229009afa74094c3e83f1b29efb

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