In this project we will be scrolling the text "Hello World!" accross the LED matrices.
To be able to scroll the text we are using the same technique of continously erasing and displaying the text like in medium, but instead of changing the text to be displayed each time, we are changing the position where the text is being displayed on the LED matrices.
We can change the position of the text when we draw the text by providing a second parameter
to led_matrix.sprite()
which draws a LEDSprite
variable on the display
at the given position. (If a position is not provided the program assumes you want the position
to be (0,0))
time.sleep(.1)
to a smaller or larger number.
x = x - 1
to a larger number.