Skip to content

Commit 8369185

Browse files
authored
Merge pull request #16 from jtrip/master
Update simple example and usage example in readme
2 parents f297762 + a23e5ff commit 8369185

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,14 @@ 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
4344
board.DISPLAY.show(text_area)
45+
while True:
46+
pass
4447
4548
4649
Contributing

examples/display_text_simpletest.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
board.DISPLAY.show(text_area)
11+
while True:
12+
pass

0 commit comments

Comments
 (0)