From 0718031c66d47d4fbeceb04d06feccabd7ed2726 Mon Sep 17 00:00:00 2001 From: Pedro Weinzettel Date: Fri, 23 Jun 2017 22:57:31 -0300 Subject: [PATCH] Add ability to stop "step" rutine In one of my projects, I need to make an "emergency stop" with an interruption. Maybe someone else can see it useful --- libraries/Stepper/src/Stepper.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/Stepper/src/Stepper.h b/libraries/Stepper/src/Stepper.h index 7b77e729fcf..60a5c176d24 100644 --- a/libraries/Stepper/src/Stepper.h +++ b/libraries/Stepper/src/Stepper.h @@ -106,6 +106,7 @@ class Stepper { int number_of_steps; // total number of steps this motor can take int pin_count; // how many pins are in use. int step_number; // which step the motor is on + bool set_stop; // call to break the while, maybe called from interrups // motor pin numbers: int motor_pin_1;