import supply_voltage #导入它，开启电量指示呼吸灯功能
import motor
import time


左轮 = motor.smart_motor(1, direction=False)
左轮.set_soft_break(True)
右轮 = motor.smart_motor(2, direction=True)
右轮.set_soft_break(True)
左轮.openloop_turn(50)
右轮.openloop_turn(50)
time.sleep(2)
左轮.openloop_turn(0)
右轮.openloop_turn(0)
time.sleep(1)
左轮.openloop_turn(100)
右轮.openloop_turn(50)
time.sleep(2)
左轮.openloop_turn(0)
右轮.openloop_turn(0)
time.sleep(1)
左轮.openloop_turn((-50))
右轮.openloop_turn(50)
time.sleep(1)
左轮.openloop_turn(0)
右轮.openloop_turn(0)
