Adafruit MatrixPortal M4、Adafruit RGB Matrix Shield + Metro M4 Airlift Lite 和 Adafruit RGB Matrix FeatherWings 的 CircuitPython 辅助程序
项目描述
简介
Adafruit MatrixPortal M4、Adafruit RGB Matrix Shield + Metro M4 Airlift Lite 和 Adafruit RGB Matrix FeatherWings 的 CircuitPython 辅助程序
依赖项
此驱动程序依赖于
请确保所有依赖项都可在 CircuitPython 文件系统中使用。这可以通过下载 Adafruit 库和驱动程序包 来轻松实现。
使用示例
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)
文档
此库的API文档可在 Read the Docs 上找到。
有关构建库文档的信息,请参阅 本指南。
贡献
欢迎贡献!请在贡献之前阅读我们的 行为准则,以帮助本项目保持友好。
项目详情
关闭
哈希值 for adafruit_circuitpython_matrixportal-3.2.0.tar.gz
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 7b0826d93508fcba9ad4369cc8416edecc454f8bb804f7945083fcab911ff551 |
|
MD5 | 1dc4326f4237255ddadbc069ba284ead |
|
BLAKE2b-256 | 0ed5341a4e85631a8696eeaec138560f6b65d01d5fb481135aea2386311c6ff1 |
关闭
哈希值 for adafruit_circuitpython_matrixportal-3.2.0-py3-none-any.whl
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 57b1a60673b83ff88cc3d7b9a3f6691b5d895e5613cb2c6e623e7ce0facc9f02 |
|
MD5 | eb18f6edb7eea7cec5d4abf83983b549 |
|
BLAKE2b-256 | d4fd14689f5d1aa06e8e8fa5d830fa36a427a3c1e1a085642d8939939e256df3 |