Files
pybricks-api/doc/main/parameters/side.rst
T
Laurens Valk e1be50181a doc/main: Revisit and automate all renders and diagrams.
Previously, all renders were created and added manually when a newly
supported device was added to the documentation.

This commit revisits all diagrams by creating them using a single
LDRAW multi-file part model and LPUB3D building instructions file.

This makes perspective and resolution consistent across all images, and
we could update them all at once if needed.

It also removes the background from all images so they can be used
with different documentation themes.
2022-10-10 09:19:49 +02:00

63 lines
1.5 KiB
ReStructuredText

.. pybricks-requirements::
Side
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. class:: Side
Side of a hub or a sensor. These devices are
mostly rectangular boxes with six sides:
.. autoattribute:: pybricks.parameters.Side.TOP
:annotation:
.. autoattribute:: pybricks.parameters.Side.BOTTOM
:annotation:
.. autoattribute:: pybricks.parameters.Side.FRONT
:annotation:
.. autoattribute:: pybricks.parameters.Side.BACK
:annotation:
.. autoattribute:: pybricks.parameters.Side.LEFT
:annotation:
.. autoattribute:: pybricks.parameters.Side.RIGHT
:annotation:
Screens or light matrices have only four sides. For those,
``TOP`` is treated the same as ``FRONT``, and ``BOTTOM`` is treated the
same as ``BACK``. The diagrams below define the sides for relevant devices.
**Prime Hub**
.. figure:: ../../main/diagrams/orientation_primehub.png
:height: 17 em
**Inventor Hub**
.. figure:: ../../main/diagrams/orientation_inventorhub.png
:height: 17 em
**Essential Hub**
.. figure:: ../../main/diagrams/orientation_essentialhub.png
:height: 17 em
**Move Hub**
.. figure:: ../../main/diagrams/orientation_movehub.png
:height: 17 em
**Technic Hub**
.. figure:: ../../main/diagrams/orientation_technichub.png
:height: 17 em
**Tilt Sensor**
.. figure:: ../../main/diagrams/orientation_tiltsensor.png
:height: 17 em