stepper.h bug ? setspeed = 0 ?


http://arduino.cc/en/reference/stepperstep

http://arduino.cc/en/reference/steppersetspeed

hi!

this maybe bug.

i want use potmeter adjust speed of steppermotor.

so analog value (0-255) used parameter of setspeed method.

if analog value on potmeter = 0
then setspeed = 0
and when mystepper.step invoked , arduino in endless loop.


   mystepper.setspeed(outputvalue);
  mystepper.step(1); // make 2 revolutions



Arduino Forum > Development > Other Software Development > stepper.h bug ? setspeed = 0 ?


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code