Due A4988 4wire stepper

The pin numbers used in digitalWrite() and digitalRead() are always the numbers printed on the Arduino board. Pin 8 is always the one labelled "8".

There are some different capabilities. All pins on the DUE can do PWM but not all on the UNO.