mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-11 17:14:41 +00:00
19 lines
388 B
Python
19 lines
388 B
Python
from pybricks.hubs import ExampleHub
|
|
from pybricks.tools import wait
|
|
from pybricks.parameters import Icon
|
|
|
|
# Initialize the hub.
|
|
hub = ExampleHub()
|
|
|
|
# Display a big arrow pointing up.
|
|
hub.display.image(Icon.UP)
|
|
|
|
# Wait so we can see what is displayed.
|
|
wait(2000)
|
|
|
|
# Display a heart at half brightness.
|
|
hub.display.image(Icon.HEART / 2)
|
|
|
|
# Wait so we can see what is displayed.
|
|
wait(2000)
|