Skip to content

Commit bc3b3b1

Browse files
committed
fix example
1 parent 2cb0c29 commit bc3b3b1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ For a board with a built-in display.
3434
3535
import board
3636
import terminalio
37-
from adafruit_display_text import text_area
37+
from adafruit_display_text import label
3838
3939
text = "Hello world"
40-
text_area = text_area.TextArea(terminalio.FONT, text=text, width=len(text))
40+
text_area = label.Label(terminalio.FONT, text=text)
41+
text_area.x = 10
42+
text_area.y = 10
4143
board.DISPLAY.show(text_area)
4244
4345

0 commit comments

Comments
 (0)