hey everyone, I'm trying to execute this command for acceleration of a motor when a button is pushed, but it only seems to work if i hold down the button, rather than just an inturrupt. Any thoughts on this.l
Do you want the stepper to run when the button becomes pressed rather than when it is pressed ? If so then look at the StateChangeDetction example in the IDE
BlackFin, i tried running your code and I wind up getting nothing happening. no errors, just no actions. I THOUGHT it would behave the same as when i run this code. The difference being the " "stepper2.moveTo(500);"
If I remove the "if" statement, the stepper accelerates up and then down for 500 steps with the origional code posted.
UKHeliBob - ill check out the state change thanks. im hoping to just set a number of steps, say 500 then have it stop, which i thought would happen with the setup logic.