Class MotorWing
Represents Adafruit's Feather DC and Stepper Motor Wing
Assembly: MotorWing.dll
View Source
Declaration
public class MotorWing
Methods
Initialize()
Initialize the MotorWings
View Source
Declaration
public void Initialize()
GetStepper(short, int)
Returns a instance of a Stepper Motor object
View Source
Declaration
public StepperMotor GetStepper(short stepperMotorIndex, int steps)
Returns
Meadow.Foundation.FeatherWings.StepperMotor: StepperMotor
Parameters
Type | Name | Description |
---|---|---|
System.Int16 | stepperMotorIndex | The stepper motor port we want to use: only 0 or 1 are valid |
System.Int32 | steps | The number of steps the motor has |
GetMotor(short)
Returns a instance of a DC Motor object
View Source
Declaration
public DCMotor GetMotor(short dcMotorIndex)
Returns
Meadow.Foundation.FeatherWings.DCMotor: DCMotor
Parameters
Type | Name | Description |
---|---|---|
System.Int16 | dcMotorIndex | The motor port we want to use: 1 thru 4 are valid |