update documentation
This commit is contained in:
parent
54320096fb
commit
3ef0fff256
6 changed files with 205 additions and 18 deletions
189
docs/source/images/compair-logo-white.svg
Normal file
189
docs/source/images/compair-logo-white.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 188 KiB |
|
@ -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
|
||||
*********
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
Reference in a new issue