Skip to main content

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
TypeNameDescription
Meadow.Foundation.FeatherWings.CommmandcommandThe action

SetSpeed(short)

Control the DC Motor speed/throttle

View Source
Declaration
public override void SetSpeed(short speed)
Parameters
TypeNameDescription
System.Int16speedThe 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
TypeNameDescription
System.Int16speedThe 12-bit PWM value, 0 is off, 4096 is on

Stop()

Stops the motor

View Source
Declaration
public void Stop()