Adafruit_Learning_System_Gu.../CircuitPython_displayio/displayio_text/code.py
2021-08-20 16:49:08 -04:00

20 lines
355 B
Python

import board
import terminalio
from adafruit_display_text import label
display = board.DISPLAY
# Set text, font, and color
text = "HELLO WORLD"
font = terminalio.FONT
color = 0x0000FF
# Create the text label
text_area = label.Label(font, text=text, color=color)
# Set the location
text_area.x = 100
text_area.y = 80
# Show it
display.show(text_area)