help with coding for a stepper motor

Photo-Tom:
can you see the fault in the code?

Why do you think there is a fault in the code?

If it won't compile please post the error the compiler produces

If it compiles but does not work as you would like tell us in detail what it actually does and how it needs to be different.

Without those inputs searching for a fault is like looking for a needle without even knowing which haystack to look in.

...R