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