You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
the Adafruit library and driver bundle.
Usage Example
importtimeimportboardimportterminaliofromadafruit_matrixportal.matrixportalimportMatrixPortal# --- Display setup ---matrixportal=MatrixPortal(status_neopixel=board.NEOPIXEL, debug=True)
# Create a new label with the color and text selectedmatrixportal.add_text(
text_font=terminalio.FONT,
text_position=(0, (matrixportal.graphics.display.height//2) -1),
scrolling=True,
)
SCROLL_DELAY=0.03contents= [
{ 'text': 'THIS IS RED', 'color': '#cf2727'},
{ 'text': 'THIS IS BLUE', 'color': '#0846e4'},
]
whileTrue:
forcontentincontents:
matrixportal.set_text(content['text'])
# Set the text colormatrixportal.set_text_color(content['color'])
# Scroll itmatrixportal.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.
About
CircuitPython helper for Adafruit MatrixPortal M4, Adafruit RGB Matrix Shield + Metro M4 Airlift Lite, and Adafruit RGB Matrix FeatherWings