I am trying to invert the direction pin value sent to my driver while using the accelstepper library, but am having trouble getting the setPinsInverted function working.
How is this function properly used with a driver?
#include <AccelStepper.h>
AccelStepper stepper(1, 3, 2); //stepper driver on pins 1 and 2
stepper.setPinsInverted (true,false,false);
Is this right?
I get this error:
other:48: error: 'class AccelStepper' has no member named 'setPinsInverted'
I think that is probably the case, in the end I just repinned the stepper connector to switch the phases, but I did check and the version of the library I have is four years old.
The unfortunate thing is that if you search accelstepper download on google the first result you get is for the same version I am using!