Update documentation
This commit is contained in:
parent
44783b827c
commit
9a42d3b9bf
18 changed files with 796 additions and 5 deletions
22
_sources/lib/IRWrapper.rst.txt
Normal file
22
_sources/lib/IRWrapper.rst.txt
Normal file
|
@ -0,0 +1,22 @@
|
|||
.. _lib_irwrapper:
|
||||
|
||||
Infrared Wrapper
|
||||
****************
|
||||
|
||||
.. autoclass:: compLib.IRWrapper.IRWrapper
|
||||
:members:
|
||||
|
||||
Examples
|
||||
=========
|
||||
|
||||
Calibrating analog sensors
|
||||
--------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from compLib import IRWrapper
|
||||
|
||||
ir = IRWrapper.IRWrapper()
|
||||
|
||||
ir.calibrate()
|
||||
print("left {} middle {} right {}".format(ir.bottom_left_calibrated(), ir.bottom_middle_calibrated(), ir.bottom_right_calibrated()))
|
Reference in a new issue