You would set the pin to output, but I strongly recommend you
NOT drive the motor directly.
If you don't turn on the pull up, and have no pull up on the pin you may not see anything.
Also the motor could be basically shorting the pin or forcing it to 5v.
Hopefully, you haven't killed the chip yet. Remove the motor, turn on the pull ups and you should see the pulses.
For one thing, the outputs are only rated at something like 25ma. For another a motor is an inductive load and will put high voltage on the the pin (when you switch an inductor, as the magnetic field collapses, it generates a high voltage).
A SN754410 is a good choice for 5v systems.
SN754410They can be purchased from
mouser for 1.87 qty 1. You can use all 4 outputs to drive a stepper.