mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
We have actual graphics of motors with their default clockwise directions now, so refer to those instead.
73 lines
1.7 KiB
ReStructuredText
73 lines
1.7 KiB
ReStructuredText
:mod:`parameters <pybricks.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:
|
|
|
|
In general, clockwise is defined by **looking at the motor shaft, just
|
|
like looking at a clock**.
|
|
|
|
Some motors have two shafts. If in doubt, refer to the following diagrams:
|
|
|
|
- Clockwise direction for :ref:`EV3/NXT motors <fig_ev3motors>`
|
|
- Clockwise direction for :ref:`Powered Up Motors <fig_pupmotors>`
|
|
- Clockwise direction for :ref:`Move Hub Motors <fig_hubs>`
|
|
|
|
.. autoclass:: pybricks.parameters.Stop
|
|
:no-members:
|
|
|
|
.. autoclass:: pybricks.parameters.Color
|
|
:no-members:
|
|
|
|
.. autoclass:: pybricks.parameters.Button
|
|
:no-members:
|
|
|
|
.. .. autoclass:: pybricks.parameters.Axis
|
|
.. :no-members:
|
|
|
|
.. .. autoclass:: pybricks.parameters.Side
|
|
.. :no-members:
|