The details of the OLED display are not posted, but I think 7 pins uses SPI communication and 4 pins uses I2C communication.
You need to change the at Arduino connection pin and the code probably needs to change the definition of the LCD.
By the way, the change from SPI to I2C significantly reduces the rendering speed.
This has the potential to be a disadvantage depending on the intended use of OLED.
Correct, the new display is 4-pin i2c. The old one 7-pin spi.
The sketch im working on is made for spi display and the only different i notice in the code is just that "display.begin" line & its wired 5 of the pins to D8/D9/D/10/D11/D12 & 5V/GND.