thomasfredericks / Stepper_28BYJ_48

Stepper 28BYJ_48 UL2003 Library for Arduino/Wiring
10 stars 8 forks source link

Current leak after I call step() using example code. #1

Open yangbo1979 opened 4 years ago

yangbo1979 commented 4 years ago

I added a function stop() to avoid current leak after step() called.

thomasfredericks commented 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).