Update documentation

This commit is contained in:
Konstantin Lampalzer 2021-03-28 16:37:43 +02:00
parent 44783b827c
commit 9a42d3b9bf
No known key found for this signature in database
GPG key ID: 9A60A522835A2AD9
18 changed files with 796 additions and 5 deletions

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