laurb9 / StepperDriver

Arduino library for A4988, DRV8825, DRV8834, DRV8880 and generic two-pin (DIR/STEP) stepper motor drivers
MIT License
557 stars 228 forks source link

Motor Status #108

Closed alexleandrom closed 9 months ago

alexleandrom commented 2 years ago

Is there some method to know the status of the motor? Ifis it stop ou moving?

laurb9 commented 9 months ago

In standard mode, the function returns when the move has completed. In "non-blocking mode", stepper.nextAction() returns 0 when the move has completed.