From 6f84d09b3ce29cfe16990ffdbedec00da646eec0 Mon Sep 17 00:00:00 2001 From: thekunalsaini <43953836+thekunalsaini@users.noreply.github.com> Date: Mon, 30 Mar 2020 14:59:50 +0530 Subject: [PATCH] Update Stepper.h --- src/Stepper.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Stepper.h b/src/Stepper.h index 2e68979..9bfa711 100644 --- a/src/Stepper.h +++ b/src/Stepper.h @@ -8,6 +8,7 @@ * High-speed stepping mod by Eugene Kozlenko * Timer rollover fix by Eugene Kozlenko * Five phase five wire (1.1.0) by Ryan Orendorff + * Shutdown the motor (1.2.0) by Kunal Saini * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -95,7 +96,9 @@ class Stepper { // mover method: void step(int number_of_steps); - + // if true, arduino will shutdown the motor after the each step and + // prevents the motor from overheat + bool releaseMode = true; int version(void); private: