how to use this h-bridge

If you don't know the voltages in the H-bridge interface you can use a relay for the direction
switch. You could measure the voltages on the forward and reverse pins and see if they are 5V
or not. If 5V you can drive them using pinMode - setting as an OUTPUT will drive to ground,
setting as an INPUT will let the pin float (but only upto 5V, not beyond).