Accel stepper library: Inverting direction pin for stepper driver

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'

Thanks

Steve

Does the space before the "(" matter ?

...R

No all whitespace is equivalent to all other whitespace in C.

You probably have an ancient version of AccelStepper installed which doesn't have
setPinsInverted - go have a look!

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!

catanimal:
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!

Just out of curiosity is that the version that is linked to on the AccelStepper website?

...R

No the accelstepper website links version 1.47 the first google result is 1.0 I think.

catanimal:
No the accelstepper website links version 1.47 the first google result is 1.0 I think.

I hope there is a lesson here.

...R