EasyManua.ls Logo

Waveshare HAT - Page 21

Waveshare HAT
24 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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:
DRV8825_SelectMotor(MOTOR1);
DRV8825_Stop();
DRV8825_SelectMotor(MOTOR2);
DRV8825_Stop();

Related product manuals