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

13 lines
229 B
Python

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