# ExampleHub = TechnicHub PrimeHub from pybricks.hubs import ExampleHub from pybricks.tools import wait # Initialize the hub. hub = ExampleHub() while True: # Read the tilt values. pitch, roll = hub.imu.tilt() # Print the result. print(pitch, roll) wait(200)