Add code examples
This commit is contained in:
parent
aa33dc36d8
commit
ec0b5562cf
3 changed files with 56 additions and 6 deletions
|
@ -1,7 +1,23 @@
|
|||
.. _lib_motor:
|
||||
|
||||
Motor
|
||||
=====
|
||||
######
|
||||
|
||||
Class Documentation
|
||||
********************
|
||||
|
||||
.. autoclass:: compLIB.Motor.Motor
|
||||
:members:
|
||||
:members:
|
||||
|
||||
Examples
|
||||
*********
|
||||
|
||||
Driving straight (maybe)
|
||||
=========================
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from compLIB.Motor import Motor
|
||||
|
||||
for port in range(0, 4):
|
||||
Motor.power(port, 50)
|
Reference in a new issue