I am modifying a simple bipolar stepper motor driver, a k158. This stepper utilized an edge triggered d-style flip flop. The set and reset inputs are at ground potential. The clock pulse input is being used to toggle the outputs of the flip-flop. Each high input changes the flip-flop output state. This is driving an H-bridge which in turn is driving a stepper motor. I want to modify the circuit so that it takes two new input from a breakout board that output 2 DIO outputs of either 0 or 5V, and have these new inputs individually control an H-bridge. The goal here is to be able to independently control the direction of current going through each motor. Any help is appreciated