I looked at all the sample codes in the lib. that are in the top bar.
http://www.airspayce.com/mikem/arduino/AccelStepper/examples.html
There are many samples havent fond the one you describe.
Or do I mis something?
I opted for the constant speed sample as I need to use the steppermotor as an regular DC motor.
I know that sounds opposite for what a stepper is used for. ![]()
The stepper steps are not accurate in my application so my steps are counted by an encoder disk.
Should I call stepper.move (10000000) and run.steppr so it keeps moving indefenetly (almost) untill I tell the motor to stop and then tell the motor to call stepper.move(-10000000) and run.stepper so it keeps moving indefenetly (almost) untill I tell the motor to stop?
BTW I found out the buttons need a debounce but that is an other issue I have to tackle.