from pybricks.hubs import TechnicHub
from pybricks.pupdevices import Motor
from pybricks.parameters import Button, Color, Direction, Port, Side, Stop
from pybricks.robotics import DriveBase
from pybricks.tools import wait, StopWatch

#GBC 41 Power Pit Mania - Hub2
#The code below is only for powering Hub 2 with the single motor

#To control the GBC Ball Dozer you have 2 options:
# 1. With your phone you have to use the LEGO Powered Up App and chose the default car controllers like the batmobile.
# 2. With the LEGO Powered Up Remote Control 88010. Use the Balldozer Pybricks code. Get the remote at https://www.lego.com/en-nl/product/remote-control-88010

hub = TechnicHub()

#Initialize motors
motor_maindrive = Motor(Port.D)

#Start motors
motor_maindrive.dc(100)   # full forward

# Keep program alive
while True:
    wait(100)

