Skip to content

Commit

Permalink
doc/nxtdevices: add sensor icons
Browse files Browse the repository at this point in the history
  • Loading branch information
laurensvalk committed Mar 27, 2020
1 parent f5c3ee6 commit 85c2d28
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
Binary file added doc/api/images/sensor_nxt_color.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/api/images/sensor_nxt_light.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/api/images/sensor_nxt_sound.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/api/images/sensor_nxt_temp.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/api/images/sensor_nxt_touch.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/api/images/sensor_nxt_ultrasonic.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions doc/api/nxtdevices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,29 @@ your programs using the :mod:`Motor <.ev3devices>` class.

NXT Touch Sensor
^^^^^^^^^^^^^^^^

.. figure:: ../api/images/sensor_nxt_touch.png
:width: 18 %

.. autoclass:: pybricks.nxtdevices.TouchSensor
:no-members:

.. automethod:: pybricks.nxtdevices.TouchSensor.pressed

NXT Light Sensor
^^^^^^^^^^^^^^^^

.. figure:: ../api/images/sensor_nxt_light.png
:width: 18 %

.. autoclass:: pybricks.nxtdevices.LightSensor

NXT Color Sensor
^^^^^^^^^^^^^^^^

.. figure:: ../api/images/sensor_nxt_color.png
:width: 18 %

.. autoclass:: pybricks.nxtdevices.ColorSensor
:no-members:

Expand All @@ -44,18 +56,34 @@ NXT Color Sensor

NXT Ultrasonic Sensor
^^^^^^^^^^^^^^^^^^^^^

.. figure:: ../api/images/sensor_nxt_ultrasonic.png
:width: 24 %

.. autoclass:: pybricks.nxtdevices.UltrasonicSensor

NXT Sound Sensor
^^^^^^^^^^^^^^^^^^^^^

.. figure:: ../api/images/sensor_nxt_sound.png
:width: 18 %

.. autoclass:: pybricks.nxtdevices.SoundSensor

NXT Temperature Sensor
^^^^^^^^^^^^^^^^^^^^^^

.. figure:: ../api/images/sensor_nxt_temp.png
:width: 32 %

.. autoclass:: pybricks.nxtdevices.TemperatureSensor

NXT Energy Meter
^^^^^^^^^^^^^^^^^

.. figure:: ../api/images/energymeter.png
:width: 30 %

.. autoclass:: pybricks.nxtdevices.EnergyMeter

Vernier Adapter
Expand Down

0 comments on commit 85c2d28

Please sign in to comment.