mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
13 lines
258 B
Python
13 lines
258 B
Python
from pybricks.hubs import ExampleHub
|
|
from pybricks.tools import wait
|
|
|
|
# Initialize the hub.
|
|
hub = ExampleHub()
|
|
|
|
# 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!')
|