diff --git a/README.rst b/README.rst index be7022d..68dee8a 100644 --- a/README.rst +++ b/README.rst @@ -36,11 +36,14 @@ For a board with a built-in display. import terminalio from adafruit_display_text import label + text = "Hello world" text_area = label.Label(terminalio.FONT, text=text) text_area.x = 10 text_area.y = 10 board.DISPLAY.show(text_area) + while True: + pass Contributing diff --git a/examples/display_text_simpletest.py b/examples/display_text_simpletest.py index e69de29..13ce617 100644 --- a/examples/display_text_simpletest.py +++ b/examples/display_text_simpletest.py @@ -0,0 +1,12 @@ +import board +import terminalio +from adafruit_display_text import label + + +text = "Hello world" +text_area = label.Label(terminalio.FONT, text=text) +text_area.x = 10 +text_area.y = 10 +board.DISPLAY.show(text_area) +while True: + pass