Update documentation

This commit is contained in:
Konstantin Lampalzer 2021-03-19 15:21:45 +01:00
parent fac9a142a9
commit dbe08c033a
No known key found for this signature in database
GPG key ID: 9A60A522835A2AD9
16 changed files with 253 additions and 641 deletions

View file

@ -4,4 +4,19 @@ Infrared Sensor
****************
.. autoclass:: compLib.IRSensor.IRSensor
:members:
:members:
Examples
=========
Testing analog sensors
-------------------------
.. code-block:: python
from compLib import IRSensor
ir = IRSensor.IRSensor()
while True:
print ("left: {} middle: {} right: {}".format(ir.bottom_left_analog(), ir.bottom_middle_analog(), ir.bottom_right_analog()))