tyhenry / CheapStepper

Arduino library for the cheap but decent 28BYJ-48 5v stepper motor with ULN2003 board
GNU General Public License v3.0
123 stars 45 forks source link

Make non-blocking moves actually non-blocking and fix rpm #21

Open Smeat opened 4 years ago

Smeat commented 4 years ago

By having the delay in the seq function we also get a delay when calling the run method. Since we waited for delayµs , and then set lastStepTime the rpm was also halved.

This adds a "blocking" parameter to the step methods with the default set to true to retain the old behaviour