you might use a couple of shift registers - http://arduino.cc/en/Tutorial/ShiftOut - to control it with 3 lines.