Stepper motor not working properly!

Do you have the standard 28byj-48 stepper (2048 full steps per shaft revolution, max RPM about 13) or this one from Adafruit:

(about 513 steps per rev, 35 RPM)?
EDIT: Don't use pin D1 it's the serial TX pin, try 3,2,4,5 and stepper.setSpeed(10) to start.