IMotor Interface
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.
Interface for a motor
C#
public interface IMotor
type IMotor = interface
Public Interface IMotor
- Derived
Is |
Gets true if the motor is connected. |
Port |
Motor port |
Sensor |
Motor type |
Speed |
Gets the speed of the motor speed is between -100 and +100 |
Float() |
Floats the motor and stop all constraints on it. |
Get |
Gets the name of the sensor. |
Get |
Get the speed |
Set |
Sets the bias of the motor. |
Set |
Sets the power consumption limit. |
Set |
Set the speed of the motor |
Start() |
Start the motor |
Start(Int32) |
Start with the specified speed |
Stop() |
Stop the Motor |
Product | Versions |
---|---|
.NET IoT Libraries | 2.0.0, 2.1.0, 2.2.0 |