/ Published in: C++
This is debugger code used for scripting proper button behavior for driving stepper motors. In place code driving the stepper motors code has been put in place switching LED's on and off for debugging purposes. The buttons switch a stepperState variable which determines the direction the motor turns. Pressing a button once will cause the motor to turn in that direction, with a second press of the button stopping it. Code is also in place to stop the motor if a mechanical stopper switch is pressed.