Stepper class for stepper control on the adafruit motor shield
See also: arduinoioaddons.adafruit.motorshieldv2.
The rpm value set for the stepper motor
the StepType for the stepper (string) which can be "single", "double", "interleave" or "microstep"
the StepsPerRevoluion for the stepper (read only)
the motor number for the stepper (read only) value will be 1 or 2.
the parent shield of this stepper (read only)
Constructor to create dcmotor object
mObj - the motor shield object
mnum - The motor number (1 or 2)
stepsperrev - Number of steps per revolution.
propertyname, propertyvalue - Optional property name/value pairs to pass to motor object.
Current known properties are:
the RPM for the stepper (revolutions per minute)
the StepType for the stepper (string) which can be "single", "double", "interleave" or "microstep"
s - a stepper object
a = arduino()
ms = addon(a, "adafruit/motorshieldv2")
mtr = stepper(ms, 1, 200)
Move the motor moving in the specified steps using the configured RPM.
sObj - the stepper object
None
See also: adafruit.motorshieldv2.
Release this motor
sObj - the stepper object
None
See also: adafruit.motorshieldv2.
Package: arduino