TextScroll
Preview notice
The MatrixOS Python API is in preview and is subject to change; it may contain errors.
Overview
The TextScroll utility provides scrolling text display functionality on the LED matrix. It can display text that's longer than the display width by scrolling it across the screen.
The TextScroll utility is implemented in Applications/Python/PikaPython/MatrixOS_UIUtility.py with type hints in Applications/Python/PikaPython/_MatrixOS_UIUtility.pyi.
TextScroll
def TextScroll(text: str, color: Color, speed: int, loop: bool) -> None
Displays scrolling text on the LED matrix.
Parameters:
text(str): Text to display and scrollcolor(Color): Color of the textspeed(int): Scroll speed (higher = faster)loop(bool): Whether to loop the text continuously
Comments