-
Notifications
You must be signed in to change notification settings - Fork 1
Home
marjaco edited this page May 22, 2025
·
3 revisions
Download the code and upload the code to the main directory on the Raspberry Pi Pico.
This is example code to let the robot move forward and stop at obstacles.
from robotlibrary.robot import Robot
r = Robot(False)
r.set_speed(80)
while r.get_dist() >20:
pass
r.emergency_stop()