Click or drag to resize
MotorHat2348CreateStepperMotor Method
Creates a PwmStepperMotor object for the specified channels and adds it to the list of Motors.

Namespace:  Adafruit.IoT.Devices
Assembly:  Adafruit.IoT (in Adafruit.IoT.dll) Version: 1.0.6.0 (1.0.6.0)
Syntax
public PwmStepperMotor CreateStepperMotor(
	byte driverChannelA,
	byte driverChannelB,
	byte steps
)

Parameters

driverChannelA
Type: SystemByte
A motor driver channel from 1 to 4.
driverChannelB
Type: SystemByte
A motor driver channel from 1 to 4.
steps
Type: SystemByte
The number of full steps per revolution that this motor has.

Return Value

Type: PwmStepperMotor
The created PwmStepperMotor object.
Remarks
The driverChannelA and driverChannelB parameters must be different and must be channels not already assigned to other PwmDCMotor or PwmStepperMotor objects for this MotorHat2348.
See Also