SSD1306 1.3" OLED – How to switch from SPI to I2C?

Your OLED can only be operated using SPI Port. SO, follow these instrutions for connection between UNO and OLED and run a test program to see 1A234 on the OLED.

Table:

UNO                  OLED
5V                   VCC
GND                  GND
MOSI (DPin-11)       SDA
SCK (DPin-13)        SCK
SS/ (DPin-10)        CS
DPi-8                RST (to initialize the display)

DPin-9               DC  (Data or Command Select)
                     LOW (UNO sends command to OLED like: cursor set,
                         intensity control etc.)
                     HIGH (UNO sends data for OLED: Alphanumeric message)