I'm trying to hook up a atmega328pu with arduino bootloader to a new haven oled display (NHD-2.7-12864UCY3).
The library I use to talk with the LCD is u8glib. It says in the documentation that my OLED is supported. However i'm only able to make it display gibberish.
The url below is the datasheet of the display i'm using.
The table below is how I hooked up the oled to my atmega328.
OLED - ATMEGA 328
1 VSS - GND
2 VDD - 3.3v
3 NC - NC
4 D/C - pin 15
5 VSS - GND
6 VSS - GND
7 SCLK - SCK / pin 19
8 SDIN - MOSI / pin 17
9 NC - NC
10 VSS - GND
11 VSS - GND
12 VSS - GND
13 VSS - GND
14 VSS - GND
15 NC - NC
16 RES - 3.3v with a 10k resistor in between
17 CS - SS / pin 16
18 NC - NC
19 BS2 - GND
20 BS1 - GND
To make it a little more clear i created this schematic.
I'm using the u8g Helloworld sketch and I tried the following constructor calls.
U8GLIB_NHD27OLED_BW u8g(13, 11, 10, 9); // SPI Com: SCK = 13, MOSI = 11, CS = 10, A0 = 9
U8GLIB_NHD27OLED_2X_BW u8g(13, 11, 10, 9); // SPI Com: SCK = 13, MOSI = 11, CS = 10, A0 = 9
U8GLIB_NHD27OLED_GR u8g(13, 11, 10, 9); // SPI Com: SCK = 13, MOSI = 11, CS = 10, A0 = 9
U8GLIB_NHD27OLED_2X_GR u8g(13, 11, 10, 9); // SPI Com: SCK = 13, MOSI = 11, CS = 10, A0 = 9
No matter what option I try always the same gibberish ![]()

I hope i have supplied enough information!
