Files
pybricks-api/examples/pup/hub_primehub/display_text.py
T
Laurens Valk bd7806d2d4 all: Format with black.
Also activate auto formatting. Bump flake8 and mark black
disagreements in setup.cfg.
2022-05-27 16:22:05 +02:00

13 lines
254 B
Python

from pybricks.hubs import PrimeHub
from pybricks.tools import wait
# Initialize the hub.
hub = PrimeHub()
# Display the letter A for two seconds.
hub.display.char("A")
wait(2000)
# Display text, one letter at a time.
hub.display.text("Hello, world!")