Stepper - setSpeed()

This function sets the motor speed in rotations per minute (RPMs). This function doesn’t make the motor turn, just sets the speed at which it will when you call step().

Syntax

setSpeed(rpms)

Parameters

  • rpms: the speed at which the motor should turn in rotations per minute (positive long).

Returns

None.

See also