Arduino Micro & Diymore 2.42" inch 12864 OLED Displa

Hi
I am new to the Arduino world and i am currently trying to apply the tutorial "Hello World" from the U8glib to my 2.42" display from Diymore via my Arduino Micro.

However i have tried all day to get the display to do something with no luck.

Wiring
Arduino | Display
GND | GND
3.3V | VCC
SCK | SCL
MOSI | SDA
D7 | DC
T08 | CS

i am struggling to figure out what pin naming to use in the U8glib contructor definintion
and i have tried the following

U8GLIB_SSD1309_128X64 u8g(9, 10, 28, 1)

U8GLIB_SSD1309_128X64 u8g(SCK, MOSI, 8, 7);

I have also tested that the code is running by plotting the time on the serial monitor.

I am sure it is something simple i am missing, would much appreciate your help.

HelloWorld.ino (11.9 KB)


Your constructor is:

/*
Arduino | Display
GND     |     GND
3.3V     |     VCC
SCK     |      SCL
MOSI   |      SDA
D7       |      DC
T08      |      CS
*/
U8GLIB_SSD1309_128X64 u8g(15, 16, 8, 7); // SPI Com: SCK = 15, MOSI = 16, CS = 8, A0 = 7

Untested. The genuine Blue Micro seems different to the Red SparkFun Pro Micro.

David.