Thanks a lot for code changes and prompt response. I could not check the code only today, with the code you wrote this happens:
I push short "buttonPullupPin_0" (first button),---> the stepper starts;
I push short "butonPullupPin_1" (the second button),----> and the stepper stops, and when i release the stepper starts again;<---- i don't need that
i hold long pressed for 2,000 milliseconds "butonPullupPin_1" (the second button), the stepper stops and starts no more, than briefly pressing the first button "buttonPullupPin_0" and the stepper starts again.
What I need is:'--->
When i briefly press the second button (butonPullupPin_1), which is a button with return, to stop the stepper only after 2000 milliseconds, so press the button, release him, stepper still going 2000 milliseconds, and then stops, untill briefly pressing the first button (buttonPullupPin_0).
Otherwise the code is good and functional.
Can you rezolve this part of code please?
Thanks