Skip to content

Commit 5ec1c88

Browse files
committed
update simple example and usage example in readme, additional line after imports for pep 8
1 parent f297762 commit 5ec1c88

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

README.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ For a board with a built-in display.
3636
import terminalio
3737
from adafruit_display_text import label
3838
39+
3940
text = "Hello world"
4041
text_area = label.Label(terminalio.FONT, text=text)
4142
text_area.x = 10
4243
text_area.y = 10
43-
board.DISPLAY.show(text_area)
44+
while True:
45+
board.DISPLAY.show(text_area)
4446
4547
4648
Contributing

examples/display_text_simpletest.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import board
2+
import terminalio
3+
from adafruit_display_text import label
4+
5+
6+
text = "Hello world"
7+
text_area = label.Label(terminalio.FONT, text=text)
8+
text_area.x = 10
9+
text_area.y = 10
10+
while True:
11+
board.DISPLAY.show(text_area)

0 commit comments

Comments
 (0)