DirectCommand StopMotorAsync Method LEGO Mindstorms EV3 API Documentation
For more information, please see the OnlineCodePlex project page and the OnlineGetting Started guide.

Stops motors on the specified ports.

Namespace: Lego.Ev3.Core
Assembly: Lego.Ev3.Desktop (in Lego.Ev3.Desktop.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public Task StopMotorAsync(
	OutputPort ports,
	bool brake
)

Parameters

ports
Type: Lego.Ev3.Core OutputPort
The port or ports to which the stop command will be sent.
brake
Type: OnlineSystem Boolean
Apply brake to motor at end of routine.

Return Value

Type: OnlineTask
See Also