Lowered minimal battery voltage and added ir sensor example

This commit is contained in:
HerrNamenlos123 2021-03-19 15:16:16 +01:00
parent 0ddc8e6c74
commit 3101e56252
2 changed files with 17 additions and 2 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()))