waspinator / AccelStepper

Fork of AccelStepper
http://www.airspayce.com/mikem/arduino/AccelStepper/
Other
146 stars 86 forks source link

is there a possability to use AccelStepper in a non-blocking way "in the backround" #18

Open StefanL38 opened 1 year ago

StefanL38 commented 1 year ago

Hello Everybody,

as far as I have used AccelStepper there are two main ways to use it

  1. in a blocking way which means no other code can be executed until the stepper-move has finished
  2. in a non-blocking way which requires to call function run() at a high frequency to ensure that all step-pulses are created just in time?

Is there any way to run accelstepper to create stepper-pulses and in parallel to use the serial interface or to read in onewire.sensors (which is "blocking for 870 milliseconds)

Does anybody know of a another stepper-motor-library that is able to do this?

best regards Stefan