Skip to content
marjaco edited this page May 22, 2025 · 3 revisions

Documentation for the robotlibrary

Installation

Download the code and upload the code to the main directory on the Raspberry Pi Pico.

Usage

SMARS robot

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()

Documentation of the classes

Clone this wiki locally