Update documentation

This commit is contained in:
Joel 2021-01-17 04:35:51 +01:00
parent 0dbfc5fe6b
commit aa6fb2fc8b
No known key found for this signature in database
GPG key ID: BDDDBECD0808290E
17 changed files with 776 additions and 47 deletions

View file

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