j5.components.motor module¶
Classes for Motor support.
-
class
j5.components.motor.
Motor
(identifier: int, backend: j5.components.motor.MotorInterface)[source]¶ Bases:
j5.components.component.Component
Brushed DC motor output.
-
identifier
¶ An integer to identify the component on a board.
Returns: component identifier.
-
static
interface_class
() → Type[j5.components.component.Interface][source]¶ Get the interface class that is required to use this component.
Returns: interface class.
-
power
¶ Get the current power of this output.
Returns: current power of this output.
-
-
class
j5.components.motor.
MotorInterface
[source]¶ Bases:
j5.components.component.Interface
An interface containing the methods required to control a motor board.