diff --git a/_sources/index.rst.txt b/_sources/index.rst.txt index c207a90..2c0ae75 100644 --- a/_sources/index.rst.txt +++ b/_sources/index.rst.txt @@ -1,25 +1,21 @@ -Welcome to CompLib's documentation! -=================================== +Robo4you Competition Library +############################# .. toctree:: :maxdepth: 2 :caption: Contents: -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` +CompLib is the library used in the robo4you competition 2021. -Table of Contents -^^^^^^^^^^^^^^^^^ +Contents +********* .. toctree:: :maxdepth: 5 :glob: self + other/usage lib/* diff --git a/_sources/other/usage.rst.txt b/_sources/other/usage.rst.txt new file mode 100644 index 0000000..93b2425 --- /dev/null +++ b/_sources/other/usage.rst.txt @@ -0,0 +1,28 @@ +.. _other_usage: + +Usage +###### + +.. code-block:: python + + import time + from compLib.Motor import * + + def forward(): + for port in range(0, 3): + Motor.power(port, 30); + + def backward(): + for port in range(0, 3): + Motor.power(port, -30); + + def main(): + print("hallo ich bin ein roboter beep buup") + + forward() + time.sleep(1) + backward() + time.sleep(1) + + if __name__ == '__main__': + main() \ No newline at end of file diff --git a/genindex.html b/genindex.html index 8c6c539..4b57980 100644 --- a/genindex.html +++ b/genindex.html @@ -80,7 +80,8 @@