AccelStepper::AccelStepper(
uint8_t interface = AccelStepper::FULL4WIRE,
uint8_t pin1 = 2,
uint8_t pin2 = 3,
uint8_t pin3 = 4,
uint8_t pin4 = 5,
bool enable = true )
[in]interface - Number of pins to interface to. 1, 2, 4 or 8 are supported, but it is preferred to use the MotorInterfaceType symbolic names.
AccelStepper::DRIVER (1) means a stepper driver (with Step and Direction pins). If an enable line is also needed, call setEnablePin() after construction. You may also invert the pins using setPinsInverted().
AccelStepper::FULL2WIRE (2) means a 2 wire stepper (2 pins required).
AccelStepper::FULL3WIRE (3) means a 3 wire stepper, such as HDD spindle (3 pins required).
AccelStepper::FULL4WIRE (4) means a 4 wire stepper (4 pins required).
AccelStepper::HALF3WIRE (6) means a 3 wire half stepper, such as HDD spindle (3 pins required)
AccelStepper::HALF4WIRE (8) means a 4 wire half stepper (4 pins required)
[in]pin1 - Arduino digital pin number for motor pin 1. Defaults to pin 2. For a AccelStepper::DRIVER (pins==1), this is the Step input to the driver. Low to high transition means to step)
[in]pin2 - Arduino digital pin number for motor pin 2. Defaults to pin 3. For a AccelStepper::DRIVER (pins==1), this is the Direction input the driver. High means forward.
...
--
So the first parameter is the interface type, and is one of the types listed (1, 2, 4, 6 or 8), and the parameters after that define the actual pins that are wired up. The examples don't show anything except the default way of accessing the object, without any parameters at all, which maybe doesn't help.
AccelStepper stepper(1, 3, 2);
is synonymous with
AccelStepper stepper(AccelStepper::DRIVER, 3, 2); which might make a bit more sense