Files
pybricks-api/doc/api/parameters.rst
T
Laurens Valk cb9393020d api/parameters: bring Port enum back
Move Port from hub classes back to common parameters module.

This would have had too much impact on existing users, so undo it.

Notes if we are ever bringing it back again:
- The idea behind this was to ultimately allow for unique ports in a multi-hub scenario:

ev3 = EV3Brick()
ev3.Port.A # This is port A on this particular instance

This may still be added while leaving the existing Port enum in place, which would then always be the ports of the hub on which the code runs.
2020-01-10 16:39:27 +01:00

61 lines
1.2 KiB
ReStructuredText

:mod:`parameters` -- Parameters and Constants
=============================================
.. automodule:: pybricks.parameters
:no-members:
.. autoclass:: pybricks.parameters.Port
:no-members:
.. content-tabs::
.. tab-container:: ev3brick
:title: EV3 Brick
Motor ports:
.. data:: A
.. data:: B
.. data:: C
.. data:: D
Sensor ports:
.. data:: S1
.. data:: S2
.. data:: S3
.. data:: S4
.. tab-container:: movehub
:title: Move Hub
Input/Output ports:
.. data:: A
.. data:: B
.. data:: C
.. data:: D
.. tab-container:: cityhub
:title: City Hub
Input/Output ports:
.. data:: A
.. data:: B
.. autoclass:: pybricks.parameters.Direction
:no-members:
.. autoclass:: pybricks.parameters.Stop
:no-members:
.. autoclass:: pybricks.parameters.Color
:no-members:
.. autoclass:: pybricks.parameters.Button
:no-members:
.. autoclass:: pybricks.parameters.Align
:no-members: