Join stepper motor and button code.

for (i = 0; i<1; i++)

If you're only ever going to do it once, there's no need for a loop.