Skip to content

Commit a23e5ff

Browse files
committed
Switch example to show text then loop with pass to hold it in place
1 parent 5ec1c88 commit a23e5ff

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ For a board with a built-in display.
4141
text_area = label.Label(terminalio.FONT, text=text)
4242
text_area.x = 10
4343
text_area.y = 10
44+
board.DISPLAY.show(text_area)
4445
while True:
45-
board.DISPLAY.show(text_area)
46+
pass
4647
4748
4849
Contributing

examples/display_text_simpletest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
text_area = label.Label(terminalio.FONT, text=text)
88
text_area.x = 10
99
text_area.y = 10
10+
board.DISPLAY.show(text_area)
1011
while True:
11-
board.DISPLAY.show(text_area)
12+
pass

0 commit comments

Comments
 (0)