Files
pybricks-api/doc/api/iodevices/index.rst
T
Laurens Valk 4a7fa12eaa config: add classlink directive
We have index pages for most modules now, which link to individual classes. It is helpful if these empty class headers are hyperlinks. This commit does just that.

For most sensors/devices so far this is not really necessary as the images are already hyperlinks. But this will become more useful as we start adding index pages like these for classes without images, such as parameters.
2021-02-14 15:39:39 +01:00

62 lines
1.2 KiB
ReStructuredText

:mod:`iodevices <pybricks.iodevices>` -- Generic I/O Devices
============================================================
.. automodule:: pybricks.iodevices
:no-members:
.. toctree::
:maxdepth: 1
:hidden:
pupdevice
i2cdevice
uartdevice
analogsensor
lumpdevice
dcmotor
ev3devsensor
.. pybricks-classlink:: PUPDevice
.. figure:: ../../api/images/sensor_pup.png
:width: 70 %
:target: pupdevice.html
This class is only available on Powered Up hubs.
.. pybricks-classlink:: I2CDevice
.. figure:: ../../api/images/sensor_rj12_bluegreen.png
:width: 25 %
:target: i2cdevice.html
.. pybricks-classlink:: UARTDevice
.. figure:: ../../api/images/sensor_rj12_gray.png
:width: 25 %
:target: uartdevice.html
.. pybricks-classlink:: AnalogSensor
.. figure:: ../../api/images/sensor_rj12_brown.png
:width: 25 %
:target: analogsensor.html
.. pybricks-classlink:: LUMPDevice
.. figure:: ../../api/images/sensor_rj12_green.png
:width: 25 %
:target: lumpdevice.html
.. pybricks-classlink:: DCMotor
.. figure:: ../../api/images/rcxmotor.png
:width: 40 %
:target: dcmotor.html
.. pybricks-classlink:: Ev3devSensor
.. figure:: ../../api/images/sensor_ev3dev.png
:width: 70 %
:target: ev3devsensor.html