As mentioned via the links of my first post, you must use
U8G2_ST7565_NHD_C12864_1_4W_SW_SPI or U8X8_ST7565_NHD_C12864_4W_SW_SPI (depending on the library mode).
According to the picture, your display is configured in 4-wire SPI mode.
Now the wiring.......Help please
Basically it is like this: Connect your display (clock, data, cs, dc (a0 or rs) and reset to any empty GPIO pin.
Write down the Arduino pin nummer and pass that pin number to the U8g2 (or U8X8) constructor. My suggestion is to make a mapping table like this
clock --> arduino pin number
data --> arduino pin number
cs--> arduino pin number
dc/a0/rs--> arduino pin number
reset--> arduino pin number
Let me assume the table looks like this:
clock --> 13
data --> 11
cs--> 7
dc/a0/rs--> 9
reset--> 8
then the constructor will look like this:
U8X8_ST7565_NHD_C12864_4W_SW_SPI(/* clock=/ 13, / data=/ 11, / cs=/ 7, / dc=/ 9, / reset=*/ 8)
BUT:
- I do not know your board. So you are on your own with the Arduino Pin numbers.
- There MUST be some kind of level shifting. Your display has a 3.3V controller which will not be able to communicate with a 5V microcontroller. The level shifting might be on the display, but to be on the safe side, you should do a level shifting here by yourself.
Oliver