Stepper Motor HAT User Manual
21 / 24
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: