64x32 rgb board showing double images

I’m working on a 64x32 rgb led matrix board as two inputs and two outputs with the same pin functions. I connected both input pins to a single port like R1 of first input pin is connected to R1 of the second input pin and so on. So both input pin is driven by one arduino pin. After my connections and everything it was showing two images up and down like duplicating it. I used ESP8266 with the pxmatrix library. Please any ideas on how to make it a single image because it a single board that has two inputs sockets and two outputs sockets.