Constructor for a single A4988 device.
Namespace: IO.Devices.A4988Assembly: libsimpleio (in libsimpleio.dll) Version: 2.2024.167.1
Syntax public Device(
int StepsPerRotation,
Pin Step,
Pin Dir,
Pin Enable = null,
Pin Reset = null,
Pin Sleep = null
)
Parameters
- StepsPerRotation Int32
- The number of steps per rotation.
This is a physical characteristic of the particular stepper motor
being driven.
- Step Pin
- GPIO pin object for the
STEP signal.
- Dir Pin
- GPIO pin object for the
DIR signal.
- Enable Pin (Optional)
- GPIO pin object for the
-ENABLE signal.
- Reset Pin (Optional)
- GPIO pin object for the
-RESET signal.
- Sleep Pin (Optional)
- GPIO pin object for the
-SLEEP signal.
See Also