update documentation

This commit is contained in:
Konstantin Lampalzer 2021-09-13 19:14:47 +02:00
parent 54320096fb
commit 3ef0fff256
6 changed files with 205 additions and 18 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 188 KiB

View file

@ -1,14 +1,12 @@
Robo4you Competition Library
.. image:: images/compair-logo-white.svg
Competition Robot Library
#############################
.. toctree::
:maxdepth: 2
:caption: Contents:
CompLib is the library used in the robo4you competition 2021.
Contents
*********

View file

@ -9,12 +9,13 @@ Usage
from compLib.Motor import *
def forward():
for port in range(0, 4):
Motor.power(port, 30);
Motor.power(1, -30);
Motor.power(2, 30);
def backward():
for port in range(0, 4):
Motor.power(port, -30);
Motor.power(1, 30);
Motor.power(2, -30);
def main():
print("hallo ich bin ein roboter beep buup")