Scrolling Text - Easy
Displaying "hello" on the LED matrices
In this project we will be displaying text onto the LED matrix display.
However, it will not be scrolling. For text that is scrolling, see hard.
How it works:
Drawing the text on the LED matrix is a 2 step process:
- First we must draw the text on the screen with
led_matrix.text()
- Then we must tell the Raspberry Pi that we want to show what we have drawn
on the LED matrices, with
led_matrix.show()
.
Try This:
- Change the text "Hello" to something else and see how it displays.
- Does your whole text display?
- How could we show longer text?
- Add more than one
led_matrix.text()
lines, with different text in the parentheses before calling led_matrix.show()
- What happens? Why?
- How do you think we could show one piece of text, wait a couple seconds, clear the screen,
and then display the next piece of text?
See medium for the answer.