15 lines
619 B
Python
15 lines
619 B
Python
from pybricks.hubs import PrimeHub
|
|
from pybricks.pupdevices import Motor, ColorSensor, UltrasonicSensor, ForceSensor
|
|
from pybricks.parameters import Button, Color, Direction, Port, Side, Stop
|
|
from pybricks.robotics import DriveBase
|
|
from pybricks.tools import wait, StopWatch
|
|
from pybricks import version
|
|
import usys
|
|
hub = PrimeHub()
|
|
|
|
print("Pybricks version information:", version)
|
|
print("MicroPython information:", usys.implementation)
|
|
print("MicroPython version:", usys.version)
|
|
while True:
|
|
print(str(hub.imu.heading()))
|
|
# Insert display test here, with input to either test hub gyro stats or display or info. |