Stepper myStepper(100, 5, 6); // For 2 pins stepper with 100 steps that's connected to pin D5 and D6. Stepper myStepper(100, 5, 6, 7, 8); // For 4 pins stepper with 100 steps that's connected to pin D5, D6, D7 and D8.