Skip to content

Commit 5e89179

Browse files
committed
Update sensor docs page
1 parent 7f14ac3 commit 5e89179

1 file changed

Lines changed: 18 additions & 13 deletions

File tree

‎docs/sensors.rst‎

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
Sensor classes
22
==============
33

4-
Sensor
5-
------
4+
.. contents:: :local:
65

7-
This is the base class all the other sensor classes are derived from.
8-
9-
.. currentmodule:: ev3dev2.sensor
10-
11-
.. autoclass:: Sensor
12-
:members:
13-
14-
Special sensor classes
6+
Dedicated sensor classes
157
----------------------
168

17-
The classes derive from :py:class:`Sensor` and provide helper functions
18-
specific to the corresponding sensor type. Each of the functions makes
19-
sure the sensor is in the required mode and then returns the specified value.
9+
These classes derive from :py:class:`Sensor` and provide helper functions
10+
specific to the corresponding sensor type. Each provides sensible property
11+
accessors for the main functionality of the sensor.
2012

2113
..
2214
@@ -85,6 +77,19 @@ Light Sensor
8577

8678

8779

80+
Base "Sensor"
81+
-------------
82+
83+
This is the base class all the other sensor classes are derived from. You
84+
generally want to use one of the other classes instead, but if your sensor
85+
doesn't have a dedicated class, this is will let you interface with it as a
86+
generic device.
87+
88+
.. currentmodule:: ev3dev2.sensor
89+
90+
.. autoclass:: Sensor
91+
:members:
92+
8893

8994
..
9095

0 commit comments

Comments
 (0)