100% found this document useful (2 votes)
610 views3 pages

ST7920 128X64 LCD Display To ESP32 - 3 Steps - Instructables

Uploaded by

Allyfrahy Alves
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
610 views3 pages

ST7920 128X64 LCD Display To ESP32 - 3 Steps - Instructables

Uploaded by

Allyfrahy Alves
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

06/12/2024, 11:52 ST7920 128X64 LCD Display to ESP32 : 3 Steps - Instructables

ST7920 128X64 LCD Display to ESP32


By blaisebarrette in CircuitsElectronics

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.

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

https://www.instructables.com/ST7920-128X64-LCD-Display-to-ESP32/ 1/3
06/12/2024, 11:52 ST7920 128X64 LCD Display to ESP32 : 3 Steps - Instructables

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.

https://www.instructables.com/ST7920-128X64-LCD-Display-to-ESP32/ 2/3
06/12/2024, 11:52 ST7920 128X64 LCD Display to ESP32 : 3 Steps - Instructables

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

https://www.instructables.com/ST7920-128X64-LCD-Display-to-ESP32/ 3/3

You might also like