ST7920 128X64 LCD Display to ESP32

Introduction: ST7920 128X64 LCD Display to ESP32

This Instructables is clearly not going to win prizes for it's quality or whatever!

Before starting this project, I glazed at the internet and found nothing about connecting this LCD to a ESP32 so I thought that upon success, it should be documented and shared.


All you will need is a ST7920 128X64 LCD display, a ESP32 and a 10K pot.

Step 1: The Connections

Connect all three components following the above connections.

It may be possible to use different pins on the ESP32 but I don't know for sure.

Step 2: The Code.

I used the Arduino IDE to upload the code on the ESP32.

If you don't know how to connect and program the ESP32 with the Arduino IDE, look for instructions on the Internet, it's quite easy to find.

The library I used is the U8g2 library V2.27.6 By Oliver.

Once you have installed the U8g2 library, go into examples and open "Examples/U8g2/full_buffer/GraphicsTest".

Now, in the code, Find the line that looks like this:

//U8G2_ST7920_128X64_F_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* CS=*/ 10, /* reset=*/ 8);

And replace it with:

U8G2_ST7920_128X64_F_SW_SPI u8g2(U8G2_R0, /* clock=*/ 18, /* data=*/ 23, /* CS=*/ 5, /* reset=*/ 22); // ESP32

Upload the code to your ESP32 and, fingers crossed, it works!

Step 3: Conclusion

This is my first Instructables.

I know it's not super fancy or anything but at least it's there and it may help someone.

Please comment your experience following these instructions and I'll try update it and make it better!

- Blaise

2 People Made This Project!


  • Water Speed Challenge

    Water Speed Challenge
  • Stone, Concrete, Cement Challenge

    Stone, Concrete, Cement Challenge
  • Backyard Contest

    Backyard Contest


Elaina M
Elaina M

1 year ago

Thanks for sharing - and congratulations on taking the leap and posting your first instructable - welcome to the author community :)


Reply 1 year ago

Hey Thanks! Here I am a few days later! LCD is working great!

Photo le 2020-04-23 à 20.06.jpg