the if (Motor_Steps--) will be true as long as the Motor_Steps variable is not zero.
Note that a post-decrement operation (changed after evaluation) is used so the value will be evaluated and then decremented.
Code C - [expand]
1
2
++x;--x;// pre-increment/pre-decrement operation (changed before evaluation)
x++; x--;// post-increment/post-decrement operation (changed after evaluation)
can u send me whole code for stepper motor,I am doing a project regarding stepper motor control & also I want to create a GUI application to control it by using serial com, I have no idea about this, can u plz help me.