I am fairly new to this.
In youtube I see majority of OLED displys having pins
VCC
GND
SCK
SDA
In one of the tutorials they asked to connect the last two pins to A5 and A6
The disply I have however has more pins
VCC
GND
CLK
MOSI
RE
SDC
CS
Can you advice how I should connect this display to arduino Nano.
Would I still be able to use Adafruit_SSD1306 library and if so would I still be able to intialise the display in this way or do I have to do it differently #include <SPI.h> #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h>
The OLEDs with SCL & SDA pins use i2c bus. Your display uses SPI bus. SPI bus uses more pins, but it is much faster to update the display, if you use the Arduino's SPI pins also (MOSI to pin 11, SCK to pin 13).
I cannot see what needs to be changed to make the display use i2c bus. There is "R1" and "R2", so maybe that is the way, but there are no labels to make this clear.
There are instructions indicating which bridges to solder to change from SPI to i2c. Bridges R3 and R4 are connected and R1, R2 and R8 are not connected, so this is set for SPI. To set for i2c, R1 and R8 must be shorted (with a blob of solder) and R3 must be broken (by removing the "0" resistor).