brian.motors.motor_port_probe
AutoDetect class objects
__init__
device_class
device_type
MotorPortProbe class objects
is_motor_api_handler_registered
is_connected
auto_detect
port_mode
probe_motor
Return latest read-only information about a motor connected to a given port. This method can be called
any time (regardless of registered Motor port handler or if it is not registered) :param: port motor port to probe. :return: information about the current port usage
probe_motor_with_port_mode_hint
Return latest read-only information about a motor connected to a given port. It requests a specific mode of the
port, based on the provided PortMode. The hint may be used to initialize a specific software protocol over a detected bus (e.g. use EV3 UART protocol if the detected motor interfaces using UART). When you expect a specific class of motors to be connected, this may be useful to extract more information, for example about supported behavior. This method can be used only, when there is no Motor handler registered.
:param: port motor port to probe. :param: PortMode target port mode. Only 'PortMode.POWER_OFF' and 'PortMode.AUTOID_ONLY' can be set manually. :return: information about the current port usage
:raises MotorPortAlreadyInUse: When trying to create probe port that is already in use.