Robotics-at-Home-with-Raspb.../ch-5/4-pwm/motors_pwm_gentle_turn.py
2021-12-07 21:34:30 +00:00

10 lines
124 B
Python

import time
import robot
try:
robot.set_left(1.0)
robot.set_right(0.5)
time.sleep(1)
finally:
robot.stop()