1.4: Added external motor brake support
Added support for external motor brake function.
If your stepper motor, or your setup in general, supports an explicit motor brake that can be triggered by a high or low signal, you can now configure a pin to support this function.
Whenever the stepper has reached its final position, the motor brake will be engaged (pin goes either high or low, depending on your configuration).
Once it is supposed to move, the motor brake will be released before triggering any step signals.
This feature was implemented upon user request and has not yet been tested in a real setup. Use at your own risk :-)
Of course, you can use this function also to trigger other devices whenever the final position has been reached or simply light an LED when the motor is moving and turn it off when it has stopped.