raspberry pi operating a unipolar stepper motor with a L293D IC

I need some help with a project where I am trying to operate a unipolar stepper motor with a raspberry pi's using the 4 GPIO pins and using a L293D IC as an amp to get it to the operating 12V of the stepper motor. The problem is that to use the method I have which is choose the + or - pairs of each coil on the stepper and switch between them whilst using the 5th wire as a common ground, I need the GPIO pins that are not set to HIGH to not become a ground connection. Any help would be appreciated or another method that I haven't thought of would be good to.

• GPIO pins that are not set to HIGH to not become a ground connection ........ HIGH and FLOAT – jsotola May 19 '18 at 5:57
• Sorry, I dont quite understand what you've said, do you mean that I should set any pins that arnt HIGH to be in FLOAT? – EON May 19 '18 at 6:35
• google charlieplexing .... set pin HIGH or set pin as INPUT (float, hi-Z, high impedance) ... en.wikipedia.org/wiki/High_impedance – jsotola May 19 '18 at 16:40
• Not strictly what you asked, but I used on of these... stepper driver – Robert Sutton May 31 '18 at 8:13