Skip to main content

Class StepperMotor

Represents a Stepper Motor

Assembly: MotorWing.dll
View Source
Declaration
public class StepperMotor : Motor

Inheritance: System.Object -> Meadow.Foundation.FeatherWings.Motor

Methods

SetSpeed(short)

Set the delay for the Stepper Motor speed in RPM

View Source
Declaration
public override void SetSpeed(short rpm)
Parameters
TypeNameDescription
System.Int16rpmThe desired RPM

Step(int, Style)

Move the stepper with the given RPM

View Source
Declaration
public virtual void Step(int steps = 1, Style style = Style.SINGLE)
Parameters
TypeNameDescription
System.Int32stepsThe number of steps to move. Negative number moves the stepper backwards
Meadow.Foundation.FeatherWings.StylestyleHow to perform the step

Step(int, Direction, Style)

Move the stepper with the given RPM

View Source
Declaration
protected virtual void Step(int steps, Direction direction, Style style)
Parameters
TypeNameDescription
System.Int32stepsThe number of steps to move
Meadow.Foundation.FeatherWings.DirectiondirectionThe direction to go
Meadow.Foundation.FeatherWings.StylestyleHow to perform the step

Step(Direction, Style)

Move the stepper one step only

View Source
Declaration
protected virtual int Step(Direction direction, Style style)
Returns

System.Int32: The current location

Parameters
TypeNameDescription
Meadow.Foundation.FeatherWings.DirectiondirectionThe direction to go
Meadow.Foundation.FeatherWings.StylestyleHow to perform the step