button to stop stepper

Look at the example program to see how to use a switch in your program.

Paul