opto-coupler: transistor vs logic

Here's a schematic of my wiring (not including wires going to the stepper motors).
The gshield schematics can be found here: