Brick.SetMotorPower(Byte, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for