So I am currently using TB6612FNG motor driver (see https://www.sparkfun.com/products/9457) to drive two dc motors. Now I wanted to connect a flyback diode (1n4001) to prevent any potential damage to the motor driver that may occur from the back voltage of the dc motors after I terminate the power. Normally, if the motor was only running in a single direction it wouldn't be an issue, as I can easily hook up the diode in parallel across the motor. Since I'm controlling a motor that can spin in either direction, I'm not entirely sure how to connect the diodes as to prevent back voltage to the driver. Thanks.