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().
setSpeed(rpms)
rpms
: the speed at which the motor should turn in rotations per minute (positive long).None.