Class DCMotor
Represents a DC Motor
Assembly: MotorWing.dll
View Source
Declaration
public class DCMotor : Motor
Inheritance: System.Object
-> Meadow.Foundation.FeatherWings.Motor
Methods
Run(Commmand)
Controls the motor direction/action
View Source
Declaration
public virtual void Run(Commmand command)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Foundation.FeatherWings.Commmand | command | The action |
SetSpeed(short)
Control the DC Motor speed/throttle
View Source
Declaration
public override void SetSpeed(short speed)
Parameters
Type | Name | Description |
---|---|---|
System.Int16 | speed | The 8-bit PWM value, 0 is off, 255 is on |
PreciseSpeed(short)
Control the DC Motor speed/throttle
View Source
Declaration
public void PreciseSpeed(short speed)
Parameters
Type | Name | Description |
---|---|---|
System.Int16 | speed | The 12-bit PWM value, 0 is off, 4096 is on |
Stop()
Stops the motor
View Source
Declaration
public void Stop()