Open yangbo1979 opened 4 years ago
Thank you for your contribution. I would rename stop to something else as sometimes you want your stepper to stop and hold a position (by keeping it engaged). So another term than "stop" would be better. For example, in https://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino/library-reference it is called "release". Also, the bStop variable does not serve any function (i.e. it does not matter if the pins are set to LOW again).
I added a function stop() to avoid current leak after step() called.