I’ve got a stepper motor rigged up and it’s all working fine, however, all the libraries I’ve found are blocking. I’m looking for a non-blocking library as I want to use the motor in conjunction with sensors and the cloud (my use case is simple - turn the stepper motor at a defined speed until a cloud function or sensor is triggered and then stop or reverse the motor. I guess it should also accelerate / deaccelerate if that’s necessary).
I came across the stepper library installed in the particle cloud IDE simply named ‘Stepper’, and looking through the code it appears to be non-blocking. I clicked ‘verify’ and the code compiles fine. However, when deploying to the photon it immediately crashes with a red flash SOS signal. 5 red flashes is apparently a ‘usage fault’.
Has anyone else had any problems using this library out of the box? If not, how do I go about finding the fault?