mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 09:37:25 +00:00
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.
61 lines
1.2 KiB
ReStructuredText
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:
|