The pinout ordering is the same for both the 1.27" and 1.5" version of the OLED!
GND -> GND (G)
5v -> VIN (+)
#2 -> SCLK (CL)
#3 -> MOSI (SI)
#4 -> DC
- #5 -> OLEDCS (OC)
#6 -> RST (R)
Now we can run the test software on the Arduino.
Three libraries need to be installed using the Arduino Library Manager…this is the preferred and modern way. From the Arduino “Sketch” menu, select “Include Library” then “Manage Libraries…”
Type “gfx” in the search field to quickly find the first library — Adafruit_GFX:
Repeat the search and install steps, looking for the Adafruit_ZeroDMA and Adafruit_SSD1351 libraries.
For a detailed tutorial on the Adafruit GFX library, including all the functions available please visit the GFX tutorial page