This is the base class all the other sensor classes are derived from.
.. currentmodule:: ev3dev.core
.. autoclass:: Sensor
:members:
The classes derive from :py:class:`Sensor` and provide helper functions specific to the corresponding sensor type. Each of the functions makes sure the sensor is in the required mode and then returns the specified value.
.. autoclass:: TouchSensor
:members:
:show-inheritance:
.. autoclass:: ColorSensor
:members:
:show-inheritance:
.. autoclass:: UltrasonicSensor
:members:
:show-inheritance:
.. autoclass:: GyroSensor
:members:
:show-inheritance:
.. autoclass:: InfraredSensor
:members:
:show-inheritance:
.. autoclass:: SoundSensor
:members:
:show-inheritance:
.. autoclass:: LightSensor
:members:
:show-inheritance: