Brick.SetMotorPower(Byte, Int32) Method

Definition

Set the motor power in percent

public void SetMotorPower (byte port, int powerPercent);
member this.SetMotorPower : byte * int -> unit
Public Sub SetMotorPower (port As Byte, powerPercent As Integer)

Parameters

port
Byte

The Motor port(s). PortA, PortB, PortC, and/or PortD.

powerPercent
Int32

The power from - 100 to 100, or -128 for float

Applies to