Skip to content

Commit

Permalink
add motor example to movement section
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccand committed May 3, 2024
1 parent ee85f3f commit d53bd89
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions docs/source/movement.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,28 @@ Quick Example

.. code-block:: python
from nanonav import ...
from nanonav import NanoBot
import time
# TODO
# Create a NanoBot object
robot = NanoBot()
# Move forward for 2 seconds
robot.m1_forward(30)
robot.m2_forward(30)
time.sleep(2)
# Stop
robot.stop()
# Move backward for 2 seconds
robot.m1_backward(30)
robot.m2_backward(30)
time.sleep(2)
# Stop
robot.stop()
Usage
-----

Expand Down

0 comments on commit d53bd89

Please sign in to comment.