Files
pybricks-api/examples/pup/hub_shared/system_shutdown.py
T

14 lines
271 B
Python

# ExampleHub = MoveHub CityHub TechnicHub
from pybricks.hubs import ExampleHub
from pybricks.tools import wait
# Initialize the hub.
hub = ExampleHub()
# Say goodbye and give some time to send it.
print("Goodbye!")
wait(100)
# Shut the hub down.
hub.system.shutdown()