Brick.GetMotorStatus(Byte) Method

Definition

Read a motor status

public Iot.Device.BrickPi3.Models.MotorStatus GetMotorStatus (byte port);
member this.GetMotorStatus : byte -> Iot.Device.BrickPi3.Models.MotorStatus
Public Function GetMotorStatus (port As Byte) As MotorStatus

Parameters

port
Byte

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

Returns

MotorStatus containing the status of the motor

Applies to