Fix documentation
This commit is contained in:
parent
daef7c97e4
commit
d3a6fcd42c
5 changed files with 5 additions and 5 deletions
|
@ -18,6 +18,6 @@ Printing percentage
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
from compLIB.Battery import Battery
|
from compLib.Battery import Battery
|
||||||
|
|
||||||
print(Battery.percent())
|
print(Battery.percent())
|
|
@ -18,7 +18,7 @@ Turning buzzer on and off
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
import time
|
import time
|
||||||
from compLIB.Buzzer import Buzzer
|
from compLib.Buzzer import Buzzer
|
||||||
|
|
||||||
Buzzer.set(True)
|
Buzzer.set(True)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
Infrared Sensor
|
Infrared Sensor
|
||||||
================
|
================
|
||||||
|
|
||||||
.. autoclass:: compLIB.IRSensor.IRSensor
|
.. autoclass:: compLib.IRSensor.IRSensor
|
||||||
:members:
|
:members:
|
|
@ -17,7 +17,7 @@ Driving straight (maybe)
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
from compLIB.Motor import Motor
|
from compLib.Motor import Motor
|
||||||
|
|
||||||
for port in range(0, 4):
|
for port in range(0, 4):
|
||||||
Motor.power(port, 50)
|
Motor.power(port, 50)
|
|
@ -3,5 +3,5 @@
|
||||||
Servo
|
Servo
|
||||||
=====
|
=====
|
||||||
|
|
||||||
.. autoclass:: compLIB.Servo.Servo
|
.. autoclass:: compLib.Servo.Servo
|
||||||
:members:
|
:members:
|
Reference in a new issue