Edit

Share via


Brick.GetMotorEncoder(Byte) Method

Definition

Read a motor encoder in degrees

public int GetMotorEncoder (byte port);
member this.GetMotorEncoder : byte -> int
Public Function GetMotorEncoder (port As Byte) As Integer

Parameters

port
Byte

The motor port (one at a time). PortA, PortB, PortC, or PortD.

Returns

Returns the encoder position in degrees

Applies to