CircuitPython helper for Adafruit MatrixPortal M4, Adafruit RGB Matrix Shield + Metro M4 Airlift Lite, and Adafruit RGB Matrix FeatherWings
Project description
Introduction
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file adafruit-circuitpython-matrixportal-3.1.11.tar.gz
.
File metadata
- Download URL: adafruit-circuitpython-matrixportal-3.1.11.tar.gz
- Upload date:
- Size: 30.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e34d4f44d8048249455ba0e514cbab35c3d7eabcbb5c9196833e6bb0442f9cc |
|
MD5 | dbc43a239fb6198d2b3ca6c66aef30f4 |
|
BLAKE2b-256 | b310c5cd89a00d19fe4b0288e88e5464903992bb14b9b03fd92d1fd597886957 |
File details
Details for the file adafruit_circuitpython_matrixportal-3.1.11-py3-none-any.whl
.
File metadata
- Download URL: adafruit_circuitpython_matrixportal-3.1.11-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9998cf1c9e824d569e6d20b85ca3464497a975bb6bbb3d5891b7fd574a24e776 |
|
MD5 | 03a84ec4132a2435469334292f6bcaa0 |
|
BLAKE2b-256 | ecad5e90b090e12dd368b1d4acf7de2b42638daf4d0c7a96bceaff7165876168 |