In this project we will be displaying the text "Hello" followed by "World" in succession one after another.
To display the text we are following the same process we did in easy.
(Drawing the text with led_matrix.text
, then showing it with led_matrix.show()
)
However, one change we do is clear the screen of the previous text displayed using led_matrix.erase()
before displaying the next piece of text and then create a delay using time.sleep(1)
to allow
the user to see the text for a second before the next text is displayed.
Also, to keep this going on forever we use a while
loop.
time.sleep(1)
lines to a different number of seconds instead of 1.