DCMotorWithStartStop Class
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.
Direct current (DC) motor with Start/Stop
public class DCMotorWithStartStop : Iot.Device.DCMotor.DCMotor
type DCMotorWithStartStop = class
inherit DCMotor
Public Class DCMotorWithStartStop
Inherits DCMotor
- Inheritance
DCMotor |
Constructs instance with added Start() and Stop() as additional protection |
Controller | (Inherited from DCMotor) |
Controller |
GpioController related with operations on pins (Inherited from DCMotor) |
Enabled |
Get or Set motor status. |
Speed |
Gets or sets the speed of the motor. Range is -1..1 or 0..1 for 1-pin connection. 1 means maximum speed, 0 means no movement and -1 means movement in opposite direction. |
Dispose() |
Releases the resources used by the DCMotor instance. |
Dispose(Boolean) |
Releases the resources used by the DCMotor instance. (Inherited from DCMotor) |
Start() |
Enable motor operation. |
Stop() |
Disable motor operation. |
Backwards(DCMotor, Double) |
Motor turns backwards at indicated speed |
Forwards(DCMotor, Double) |
Motor turns forwards at indicated speed |
Stop(DCMotor) |
Stops the Iot.Device.DCMotor |
Product | Versions |
---|---|
.NET IoT Libraries | 2.0.0, 2.1.0, 2.2.0 |