Datasheet

#print("Steppin!")
stepper.step(numsteps, direction, style)
#print("Done")
We have some commented-out print statements in case you want to do some debugging.
Then, whenever you want to make the first stepper move, you can call:
st1 = threading.Thread(target=stepper_worker, args=(myStepper1, numsteps, direction, stepping_style))
st1.start()
Which will spin up a background thread to move Stepper1 and will return immediately. You
can then do the same with the second stepper:
st2 = threading.Thread(target=stepper_worker, args=(myStepper2, numsteps, direction, stepping_style))
st2.start()
You can tell when the stepper is done moving because the stepper thread you created will
'die' - test it with st2.isAlive() or st2.isAlive() - if you get True that means the stepper is still
moving.
Using "Non-blocking" oneStep()
OK lets say you want a lot of control over your steppers, you can use the one
oneStep(direction, stepstyle) which will make a single step in the style you request, with no delay.
This will let you step exactly when you like, for the most control
© Adafruit Industries
https://learn.adafruit.com/adafruit-dc-and-stepper-motor-hat-for-
raspberry-pi
Page 31 of 38