Update documentation
This commit is contained in:
parent
0dbfc5fe6b
commit
aa6fb2fc8b
17 changed files with 776 additions and 47 deletions
28
html/_sources/other/usage.rst.txt
Normal file
28
html/_sources/other/usage.rst.txt
Normal 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()
|
Reference in a new issue