So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By mr.burns
#80494 Hello,

today started working with ESP-07. I clould make the blink demo working.
Now I wanted to add an OLED display (Waveshare OLED 128x128 pixel (SSD1327))

https://www.waveshare.com/wiki/1.5inch_OLED_Module


In Arduino IDE I used the "Hello world" demo of following library:


https://www.arduinolibraries.info/libraries/u8g2


From this library I uncommented following constructor:

Code: Select allU8X8_SSD1327_MIDAS_128X128_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);



But now I have a problem, I do not really know how to wire the OLED display to my ESP-07.


The OLED display has follwing pins (Vcc and GND is obvious, so I did not mention them here):

    [li]DIN[/li]
    [li]CLK[/li]
    [li]CS[/li]
    [li]DC[/li]
    [li]RST[/li]

In the documentation for ESP07 I found following SPI GPIO pins:

    [li]SCK - GPIO14[/li]
    [li]MISO - GPIO12[/li]
    [li]MOSI - GPIO13[/li]
    [li]CS - GPIO15[/li]

But I don't know what pin on OLED side to connect with what pin on ESP07 side.
Could someone explain it to me?

And what should I do with the RST pin of my OLED? There is no equivalent pin on ESP07 side.

I further have to set the correct pin numbers in the u8x8 constructor.

What ESP07 pin I have to enter in the constructor for:

    [li]clock[/li]
    [li]data[/li]
    [li]cs[/li]
    [li]dc[/li]
    [li]reset[/li]


The HelloWorld example has following setup-function:

Code: Select allvoid setup(void)
{
  /* U8g2 Project: SSD1306 Test Board */
  //pinMode(10, OUTPUT);
  //pinMode(9, OUTPUT);
  //digitalWrite(10, 0);
  //digitalWrite(9, 0);      
 
  /* U8g2 Project: KS0108 Test Board */
  //pinMode(16, OUTPUT);
  //digitalWrite(16, 0);   
 
  u8x8.begin();
  u8x8.setPowerSave(0);
 
 
}


How I have to change it to work with my OLED?


Thanks a lot...