If you take any of the examples that come with AccelStepper, and instead of writing
AccelStepper stepper;
For the objection creation, you write
AccelStepper stepper(FULL4WIRE, 1, 2, 3, 4);
(which, as I understand it, is the right way to specify the FULL4WIRE interface with 4 different pins) then you get
“ConstantSpeed:11: error: ‘FULL4WIRE’ was not declared in this scope”
When you try to compile. Or at least I do. Does anybody else get that too? This is with the latest version of the library (1.19).
I believe the problem lies in the fact that the function prototype is
AccelStepper(uint8_t interface = FULL4WIRE, uint8_t pin1 = 2, uint8_t pin2 = 3, uint8_t pin3 = 4, uint8_t pin4 = 5);
Rather than
AccelStepper(MotorInterfaceType interface = FULL4WIRE, uint8_t pin1 = 2, uint8_t pin2 = 3, uint8_t pin3 = 4, uint8_t pin4 = 5);
But I’m not really much of a C++ guy, so I could be totally off on this one.
Can anyone confirm this problem?
*Brian