创客百科

姿势共享,有节操无门槛参与的创客百科,创客动力之源 \ (^_^) /

用户工具

站点工具


en:arduino:libraries:stepperstep

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

en:arduino:libraries:stepperstep [2016/12/25 22:15]
en:arduino:libraries:stepperstep [2016/12/25 22:15] (当前版本)
行 1: 行 1:
 +====== Stepper: step(steps) ======
  
 +
 +===== Description =====
 +
 +Turns the motor a specific number of steps, at a speed determined by the most recent call to setSpeed(). This function is blocking; that is, it will wait until the motor has finished moving to pass control to the next line in your sketch. For example, if you set the speed to, say, 1 RPM and called step(100) on a 100-step motor, this function would take a full minute to run. For better control, keep the speed high and only go a few steps with each call to step().
 +===== Parameters =====
 +
 +steps: the number of steps to turn the motor - positive to turn one direction, negative to turn the other (int)
 +===== Returns =====
 +
 +None
 +===== See also =====
 +
 +  * Stepper(steps,​ pin1, pin2)
 +  * Stepper(steps,​ pin1, pin2, pin3, pin4)
 +  * setSpeed(rpm)
 +[[en:​arduino:​libraries|Reference Home]]
en/arduino/libraries/stepperstep.txt · 最后更改: 2016/12/25 22:15 (外部编辑)