 | 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)
Syntaxpublic PwmStepperMotor CreateStepperMotor(
byte driverChannelA,
byte driverChannelB,
byte steps
)
Public Function CreateStepperMotor (
driverChannelA As Byte,
driverChannelB As Byte,
steps As Byte
) As PwmStepperMotor
public:
virtual PwmStepperMotor^ CreateStepperMotor(
[InAttribute] unsigned char driverChannelA,
[InAttribute] unsigned char driverChannelB,
[InAttribute] unsigned char steps
) sealed
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:
PwmStepperMotorThe created
PwmStepperMotor object.
Remarks
See Also