hi!
sorry for being so imprecise; the Arduino environment is 1.8.2 under Ubuntu 16.04 (it did not work with the Arduino IDE on the Raspian Stretch I have installed, too); I had an older version (from this april) where a sketch was still uploaded, and there to motor started to spin. now it doesn't after uploading this sketch - so far to the "not working" thing. the installed version of the AccelStepper library is 1.57 ...
yours
wolfi
It's still not clear to me what changed between the working and non-working state. A new version of the Arduino IDE? A new version of the AccelStepper library? A new version of the sketch?
Also you didn't answer this question:
pert:
Have you verified that it goes back to the working state when you revert to using that version?
By "that version" I mean the version you were using before updating to the "latest version" (of whatever it is you're talking about).
Install version 1.55 again and see if it starts working. I'm not saying you shouldn't get the latest version of the library working but you need to verify that updating the library version was the cause of the problem.
And then look at the differences between the versions - there will be something in the change list in the release notes in AccelStepper.h file if something changed incompatibly.
BTW just looking at the code for AccelStepper 1.19 which I have shows an obvious bug in the constructor
which calls enableOutputs() at constructor-call time, which is not correct. This means the library will only
work for top-level constructors if called late enough in the initialization process, which is fragile to say the
least.
Constructors should never assume anything in the system is ready to use except the instance variables it
is initializing. Anything else should be done in a begin() method.
Bit of a surprize this, I've never seen AccelStepper fail, but it looks like that's luck - everyone calls
pinMode explicitly on the output pins anyway?