how to switch a data line on and off with a digital output "smallest possible"

Post a wiring diagram of your present setup (hand drawn, not a Fritzing pile), links to the stepper motors and motor drivers, and the code, using code tags.

See "How to use this forum" if you have questions about how to use this forum.