Stepper Motor HAT User Manual
If you use CTRL+C to stop the code, DRV8825 chip may doesn't be disabled, so
this function is used to handle such case. Ctrl+C generates signal SIGINT, Handler()
function is executed when the signal generated.
The Handler() work with these statements:
DRV8825_SelectMotor(MOTOR1);
DRV8825_Stop();
DRV8825_SelectMotor(MOTOR2);
DRV8825_Stop();
21 / 24