# 128\*64 LCD not working

**URL:** <https://forum.arduino.cc/t/128-64-lcd-not-working/1250375>\
**Category:** Displays\
**Created:** [April 21, 2024, 1:13pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375 "2024-04-21T13:13:26Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![malhar\_thaker](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@malhar\_thaker](https://forum.arduino.cc/u/malhar_thaker)\
**Post date:** [April 21, 2024, 1:13pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375/1 "2024-04-21T13:13:26Z")

</div>

I'm in a bit of a pinch right now.  
So, I have a ST7920 128\*64 LCD, and it won't work no matter what i do. Only the backlight works, and I can control it with a 10Kpot. No code works, no tutorial works. as per my understanding all the wirings are fine (crosschecked it multiple times with different tutorials).

**Currently I'm referring to this article.** [Reference Article] ([Interfacing 128 x 64 Graphical LCD With Arduino](https://www.makerguides.com/interfacing-128-x-64-graphical-lcd-with-arduino/))

**LCD Datasheet** [https://i.im.ge/2024/04/21/ZanJOT.tech1737-16-768x887.webp](https://i.im.ge/2024/04/21/ZanJOT.tech1737-16-768x887.webp)

**This is my setup.**

 ![20240421_175832](https://europe1.discourse-cdn.com/arduino/original/4X/c/2/c/c2c8b8877621d961e20cc319d56637e6b7fc4ece.jpeg)  
 ![20240421_175838](https://europe1.discourse-cdn.com/arduino/original/4X/f/c/1/fc1bc32a5754a78f82ec6ec3128dcbc7f6cbface.jpeg)  
 ![20240421_175851](https://europe1.discourse-cdn.com/arduino/original/4X/e/3/a/e3aae75efc85fede079a33fa3e7467c9621d6733.jpeg)  
VIDEO -[https://www.flexclip.com/share/572274815e8b10015b1ed6c2450e08a5161c287.html](https://www.flexclip.com/share/572274815e8b10015b1ed6c2450e08a5161c287.html)

As you can see in the video, I am able to control the brightness with a 10K Pot.  
I've tried everything but nothing seems to be working. Please help.

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![camsysca](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/camsysca/32/1015228_2.png) [@camsysca](https://forum.arduino.cc/u/camsysca)\
**Post date:** [April 21, 2024, 1:40pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375/2 "2024-04-21T13:40:52Z")

</div>

So if your wiring is perfect, it must be your code, which you saw fit not to provide. See a problem here? Use code tags, and post it in a new message.

To avoid the usual 20 questions, a description of what your project is about, and what the code is supposed to do, would also be useful.

---

<div class="post-metadata">

**Author:** ![malhar\_thaker](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@malhar\_thaker](https://forum.arduino.cc/u/malhar_thaker)\
**Post date:** [April 21, 2024, 2:03pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375/3 "2024-04-21T14:03:43Z")

</div>

My project is to make a space invaders arcade game, but for starters I'm using a code from [https://www.makerguides.com/interfacing-128-x-64-graphical-lcd-with-arduino/](https://www.makerguides.com/interfacing-128-x-64-graphical-lcd-with-arduino/). This code simply displays an image. Here is the code I'm using.

```arduino
#include "Arduino.h"
#include "U8g2lib.h"
 
#ifdef U8X8_HAVE_HW_SPI
#include "SPI.h"
#endif
#ifdef U8X8_HAVE_HW_I2C
#include "Wire.h"
#endif
 
// 'TheOffice', 128x64px, source: //https://www.electronicshub.org/interfacing-128x64-graphical-lcd-with-arduino/
 
static const unsigned char myBitmap [] PROGMEM = {
 
  0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  0xff, 0xff, 0xff, 0x3f, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x06, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc7,
  0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xff, 0xff, 0xff,
  0xff, 0xff, 0xff, 0x9f, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb8, 0x03, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0,
  0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0xb0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x01, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x00, 0xb0,
  0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x3f, 0x00,
  0x00, 0x00, 0x00, 0xb0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x08, 0x80, 0x7f, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x01, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x08, 0x80, 0x7f, 0x00, 0x00, 0x00, 0x00, 0xb0,
  0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x80, 0x7f, 0x00,
  0x00, 0x00, 0x00, 0xb0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x08, 0x00, 0x7f, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x01, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x3f, 0x00, 0x00, 0x00, 0x00, 0xb0,
  0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0xc0, 0x7f, 0x00,
  0x00, 0x00, 0x00, 0xb0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x08, 0xf0, 0xff, 0x03, 0x00, 0x00, 0x00, 0xb0, 0x01, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x08, 0xf8, 0xff, 0x07, 0x00, 0x00, 0x7c, 0xb0,
  0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0xf8, 0xff, 0x07,
  0x00, 0x00, 0xfe, 0xb0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x08, 0xf8, 0xff, 0x07, 0x00, 0x00, 0xfe, 0xb0, 0x01, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x08, 0xf8, 0xff, 0x07, 0x00, 0x00, 0xfe, 0xb0,
  0x81, 0xff, 0x1d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0xf8, 0xff, 0x0f,
  0x00, 0x00, 0xfe, 0xb0, 0x81, 0xff, 0x1d, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x08, 0xf8, 0xff, 0x0f, 0x00, 0x00, 0xfe, 0xb0, 0x81, 0xff, 0x1d, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x08, 0xfc, 0xff, 0x0f, 0x00, 0x00, 0xfe, 0xb0,
  0x01, 0x38, 0xdc, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x08, 0xfc, 0xff, 0x0f,
  0x00, 0x00, 0x7c, 0xb0, 0x01, 0x38, 0xfc, 0xf3, 0x03, 0x00, 0x00, 0x00,
  0x08, 0xfc, 0xff, 0x0f, 0x00, 0x00, 0x38, 0xb0, 0x01, 0x38, 0xfc, 0xfb,
  0x07, 0x00, 0x00, 0x00, 0x08, 0xfc, 0xff, 0x0f, 0x00, 0x00, 0xfc, 0xb0,
  0x01, 0x38, 0x9c, 0x3b, 0x07, 0x00, 0x00, 0x00, 0x08, 0xfc, 0xff, 0x07,
  0x00, 0x00, 0xfe, 0xb0, 0x01, 0x38, 0x9c, 0xfb, 0x07, 0x00, 0x00, 0x00,
  0x08, 0xfc, 0xff, 0x07, 0x00, 0x00, 0xfe, 0xb7, 0x01, 0x38, 0x9c, 0xfb,
  0x07, 0x00, 0x00, 0x00, 0x08, 0xfc, 0xff, 0x07, 0x00, 0x00, 0xfe, 0xb7,
  0x01, 0x38, 0x9c, 0x3b, 0x07, 0x00, 0x00, 0x00, 0x08, 0xfc, 0xff, 0x07,
  0x00, 0x00, 0xfe, 0xb7, 0x01, 0x38, 0x9c, 0xfb, 0x07, 0x00, 0x00, 0x00,
  0x08, 0xfe, 0xff, 0x07, 0x00, 0x00, 0xff, 0xb7, 0x01, 0x38, 0x9c, 0xf3,
  0x03, 0x00, 0x00, 0x00, 0x08, 0xfe, 0xff, 0x07, 0x00, 0x80, 0xff, 0xb7,
  0x01, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0xc8, 0xff, 0xff, 0x00,
  0x00, 0xc0, 0xff, 0xb6, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0xc8, 0xff, 0xff, 0x00, 0x00, 0xe0, 0xff, 0xb6, 0x01, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0xc8, 0xff, 0xff, 0x00, 0x00, 0xfe, 0xff, 0xb6,
  0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc8, 0xff, 0xff, 0x00,
  0xc0, 0xff, 0xff, 0xb6, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0xc8, 0xff, 0xff, 0x00, 0xe0, 0xff, 0xff, 0xb6, 0x01, 0xf8, 0x07, 0xbe,
  0xff, 0x00, 0x00, 0x00, 0xc8, 0xff, 0xff, 0x00, 0xe0, 0x7f, 0xff, 0xb7,
  0x01, 0xfc, 0x1f, 0xbf, 0xff, 0x00, 0x00, 0x00, 0xc8, 0xff, 0xff, 0xfc,
  0xff, 0x0f, 0xff, 0xb7, 0x01, 0xfe, 0x1f, 0xbf, 0xff, 0x00, 0x00, 0x00,
  0xc8, 0xff, 0xff, 0xfc, 0xff, 0xef, 0xff, 0xb7, 0x01, 0x1f, 0x3e, 0x8f,
  0x03, 0x00, 0x00, 0x00, 0xc8, 0xff, 0xff, 0xc0, 0x01, 0xfe, 0xff, 0xb7,
  0x01, 0x0f, 0xbc, 0xff, 0xef, 0xf0, 0x87, 0x1f, 0xc8, 0xff, 0xff, 0xc0,
  0x01, 0xff, 0xff, 0xb7, 0x01, 0x0f, 0xbc, 0xff, 0xef, 0xf8, 0xcf, 0x3f,
  0xc8, 0xff, 0xff, 0xc0, 0x01, 0xff, 0xff, 0xb7, 0x01, 0x0f, 0xb8, 0xff,
  0xef, 0xfc, 0xef, 0x3f, 0xc8, 0xff, 0xff, 0xc0, 0x01, 0xff, 0x7f, 0xb7,
  0x01, 0x0f, 0x38, 0x8f, 0xe3, 0x3c, 0xef, 0x79, 0x08, 0xc0, 0x7f, 0xc0,
  0x81, 0xff, 0x1f, 0xb7, 0x01, 0x0f, 0x3c, 0x8f, 0xe3, 0x3c, 0xe0, 0x7f,
  0x08, 0xc0, 0x7f, 0xc0, 0x81, 0xef, 0xff, 0xb7, 0x01, 0x0f, 0x3c, 0x8f,
  0xe3, 0x1c, 0xe0, 0x7f, 0x08, 0xc0, 0x7f, 0xc0, 0x81, 0xef, 0xff, 0xb7,
  0x01, 0x1f, 0x3c, 0x8f, 0xe3, 0x3c, 0xe6, 0x7f, 0x08, 0xc0, 0x7f, 0xc0,
  0x81, 0xe7, 0xff, 0xb7, 0x01, 0x3e, 0x3e, 0x8f, 0xe3, 0x3c, 0xef, 0x79,
  0x08, 0x80, 0x7b, 0xc0, 0xc1, 0x67, 0x00, 0xb7, 0x01, 0xfe, 0x1f, 0x8f,
  0xe3, 0xfc, 0xef, 0x7f, 0x08, 0x80, 0x33, 0xc0, 0xc1, 0x67, 0x00, 0xb7,
  0x01, 0xfc, 0x0f, 0x8f, 0xe3, 0xf8, 0xcf, 0x3f, 0x08, 0x00, 0x00, 0xc0,
  0xc1, 0x67, 0x00, 0xb7, 0x01, 0xf8, 0x07, 0x8f, 0xe3, 0xf0, 0xc7, 0x1f,
  0x08, 0x00, 0x00, 0xc0, 0xe1, 0x63, 0x00, 0xb7, 0x01, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0xc0, 0xe1, 0x63, 0x00, 0xb7,
  0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0xc0,
  0xe1, 0x61, 0x00, 0xb7, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x08, 0x00, 0x00, 0xc0, 0xe1, 0x61, 0x00, 0xb7, 0x01, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0xc0, 0xe1, 0x61, 0x00, 0xb7,
  0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0xc0,
  0xe1, 0x60, 0x00, 0xb2, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x03, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0,
  0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0xbc, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xcf, 0x06, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0,
  0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  0xff, 0xff, 0xff, 0x7f
};
 
 
U8G2_ST7920_128X64_F_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* CS=*/ 10, /* reset=*/ 8);
 
 
void draw(void)
{
  u8g2.drawXBMP( 0, 0, 128, 64, myBitmap);
}
 
 
void setup()
{
  // put your setup code here, to run once:
  u8g2.begin();
  u8g2.clearBuffer();
}
 
void loop()
{
  // put your main code here, to run repeatedly:
  u8g2.firstPage();
  do
  {
    draw();
  } while (u8g2.nextPage());
 
  delay(1000);
}

```

---

<div class="post-metadata">

**Author:** ![Rintin](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/rintin/32/1013044_2.png) [@Rintin](https://forum.arduino.cc/u/Rintin)\
**Post date:** [April 21, 2024, 2:18pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375/5 "2024-04-21T14:18:31Z")

</div>

The connections on the Uno to the pot screams "bad connection" to me...

It seems that the ST7920 supports parallel mode and serial mode. How is your display configured?

---

<div class="post-metadata">

**Author:** ![malhar\_thaker](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@malhar\_thaker](https://forum.arduino.cc/u/malhar_thaker)\
**Post date:** [April 21, 2024, 2:29pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375/6 "2024-04-21T14:29:55Z")

</div>

I am using the SPI interface supported by the LCD controller. (3 wire SPI i guess)  
The GPIO13 Pin on the Arduino is the SPI clock pin. The “E” pin on the LCD board is the Clock pin. RS pin of the LCD is the Chip select pin.  
RW pin acts as SPI data input pin for the LCD. MOSI pin of the Arduino is Pin 11.  
Pin 10 of the Arduino is the SPI slave select pin.

Yes, I am aware of the loose pot connection as I was just trying different things to make something work. I will surely connect it properly using a breadboard once the issue is figured out, Thanks a lot.

---

<div class="post-metadata">

**Author:** ![Rintin](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/rintin/32/1013044_2.png) [@Rintin](https://forum.arduino.cc/u/Rintin)\
**Post date:** [April 21, 2024, 2:35pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375/7 "2024-04-21T14:35:20Z")

</div>

> [@malhar\_thaker](#):
>
> I am using the SPI interface

Ok, now what does the display expect you to use?

---

<div class="post-metadata">

**Author:** ![david\_2018](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/david_2018/32/1013044_2.png) [@david\_2018](https://forum.arduino.cc/u/david_2018)\
**Post date:** [April 21, 2024, 2:37pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375/8 "2024-04-21T14:37:24Z")

</div>

The constructor is for software SPI, have you tried hardware SPI?  
Have you tried hooking up the reset pin?  
The constructor is for a full buffer, the firstpage()/nextpage() loop is for a paged buffer.

Have you tried any of the examples sketches from the U8g2 library?

---

<div class="post-metadata">

**Author:** ![malhar\_thaker](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@malhar\_thaker](https://forum.arduino.cc/u/malhar_thaker)\
**Post date:** [April 21, 2024, 3:23pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375/9 "2024-04-21T15:23:04Z")

</div>

> [@david\_2018](#):
>
> Have you tried any of the examples sketches from the U8g2 library?

Yes, I did try the "Hello World", in page buffer from the u8g2 library examples. As I'm a beginner i followed a tutorial for this.  
I didn't connect a reset pin, so I used:  
`U8X8_PIN_NONE`  
I will try using the reset pin instead, thanks for the suggestion.

---

<div class="post-metadata">

**Author:** ![malhar\_thaker](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@malhar\_thaker](https://forum.arduino.cc/u/malhar_thaker)\
**Post date:** [April 21, 2024, 3:26pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375/10 "2024-04-21T15:26:37Z")

</div>

> [@david\_2018](#):
>
> The constructor is for a full buffer, the firstpage()/nextpage() loop is for a paged buffer.

I'm sorry but I'm unaware of what this means. Please help me to fix this

---

<div class="post-metadata">

**Author:** ![malhar\_thaker](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@malhar\_thaker](https://forum.arduino.cc/u/malhar_thaker)\
**Post date:** [April 21, 2024, 3:27pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375/11 "2024-04-21T15:27:31Z")

</div>

> [@Rintin](#):
>
> Ok, now what does the display expect you to use?

SP7920 supports three different types of interfaces: 8 bit, 4 bit, and Serial SPI interface. I am yet to try the 8 bit and 4 bit interfaces

---

<div class="post-metadata">

**Author:** ![Rintin](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/rintin/32/1013044_2.png) [@Rintin](https://forum.arduino.cc/u/Rintin)\
**Post date:** [April 22, 2024, 5:58pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375/12 "2024-04-22T17:58:44Z")

</div>

Any success so far?

From the datasheet I found, the chip could also be a KS0108.

---

<div class="post-metadata">

**Author:** ![PaulRB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paulrb/32/216330_2.png) [@PaulRB](https://forum.arduino.cc/u/PaulRB)\
**Post date:** [April 22, 2024, 6:23pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375/13 "2024-04-22T18:23:05Z")

</div>

> [@malhar\_thaker](#):
>
> I have a ST7920 128\*64 LCD

How do you _know_ that's what it is?

If the only reason is that it's what some vendor on eBay or AliExpress said it was, they could be mistaken, especially if they also sell bikinis and false plastic nails.

If it is a ks0108 that @Rintin mentioned, that would certainly explain your problem, because that driver chip has no SPI feature.

---

<div class="post-metadata">

**Author:** ![van\_der\_decken](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/van_der_decken/32/1006976_2.png) [@van\_der\_decken](https://forum.arduino.cc/u/van_der_decken)\
**Post date:** [April 22, 2024, 6:40pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375/14 "2024-04-22T18:40:12Z")

</div>

> [@malhar\_thaker](#):
>
> I have a ST7920 128\*64 LCD

Although your pictures never show the entire back side of your display, it appears to be a JHD12684E type, and the datasheet you linked to collaborates that. Which, as both @Rintin and @PaulRB noted, is based on a KS0108 controller, and has a parallel interface.

See below for an example of how to work with this type of display:  
[https://exploreembedded.com/wiki/Graphics\_LCD\_Basics\_:\_KS0108\_based\_JHD12864E](https://exploreembedded.com/wiki/Graphics_LCD_Basics_:_KS0108_based_JHD12864E)

---

<div class="post-metadata">

**Author:** ![PaulRB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paulrb/32/216330_2.png) [@PaulRB](https://forum.arduino.cc/u/PaulRB)\
**Post date:** [April 22, 2024, 7:00pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375/15 "2024-04-22T19:00:09Z")

</div>

Here's a picture of one of my 12864 displays. It looks very similar to your pictures. My display is a ks0108.

 ![IMG_20240422_195436320](https://europe1.discourse-cdn.com/arduino/original/4X/a/a/f/aafbc9abb1a3a88a803d6677a43274a04b4ea523.jpeg)

Not having an SPI interface, a ks0108 display is going to take up more of your Uno's pins. I wasn't aware it had a 4-pin parallel interface, I thought it was only 8-pin parallel.

I solved that problem with an i2c backpack. These are different from the common i2c backpacks for 1602 and 2004 character displays, but it will work with those also.

 ![IMG_20240422_195930163_HDR](https://europe1.discourse-cdn.com/arduino/original/4X/8/1/8/818dd3a1a9f86cb1e001179344013f99e64f59a1.jpeg)  
 ![IMG_20240422_195942334_HDR](https://europe1.discourse-cdn.com/arduino/original/4X/3/4/d/34db137713e769372ef667644ddfdf795f4790ed.jpeg)

> **[IIC I2C TWI SPI Serial Interface Expanded Board Module Port for Arduino UNO...](https://www.diymore.cc/products/diymore-iic-i2c-twi-spi-serial-interface-expanded-board-module-port-for-arduino-uno-r3-1602-lcd-2004-lcd-12864-lcd-display?_pos=3&_sid=1eb2cf1e1&_ss=r)**
>
> Feature：Using MCP23017 chip, which is compatible with 1602 LCD 2004 LCD 12864 LCD.I2C Address: Can be set according to your requirements, please see the left schematic.The backlight and contrast is adjusted by potentiometer.Come with 2 IIC interface,...

---

<div class="post-metadata">

**Author:** ![Rintin](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/rintin/32/1013044_2.png) [@Rintin](https://forum.arduino.cc/u/Rintin)\
**Post date:** [April 22, 2024, 9:03pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375/16 "2024-04-22T21:03:26Z")

</div>

> [@PaulRB](#):
>
> I wasn't aware it had a 4-pin parallel interface

The KS0108 is 8 bit parallel only.

---

<div class="post-metadata">

**Author:** ![PaulRB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paulrb/32/216330_2.png) [@PaulRB](https://forum.arduino.cc/u/PaulRB)\
**Post date:** [April 22, 2024, 9:28pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375/17 "2024-04-22T21:28:21Z")

</div>

Thought so.

It's st7920 that has 8-bit, 4-bit & SPI.

---

<div class="post-metadata">

**Author:** ![malhar\_thaker](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@malhar\_thaker](https://forum.arduino.cc/u/malhar_thaker)\
**Post date:** [April 27, 2024, 11:50pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375/18 "2024-04-27T23:50:38Z")

</div>

It was, afterall a KS0108 display. And it works perfectly now. Thankyou all, @Rintin @PaulRB @van_der_decken @david_2018 @camsysca for helping me out on this issue.

The website from which I bought this lcd is an Electronic-tech wholesaler and in the product description they clearly state "**The Graphic LCD Display 128×64 (Blue) – JHD Make is based on the ST7920 controller.**" which led to me believing it to be ST7920. (idk how a tech retailer can make such a dumb mistake)

 ![WhatsApp Image 2024-04-28 at 04.58.33_e89b27f9](https://europe1.discourse-cdn.com/arduino/original/4X/6/9/6/6961bd282176585f831c82bf31ed091ecb8293cf.jpeg)

Grateful for your help! 🙏

---

<div class="post-metadata">

**Author:** ![malhar\_thaker](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@malhar\_thaker](https://forum.arduino.cc/u/malhar_thaker)\
**Post date:** [April 27, 2024, 11:57pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375/19 "2024-04-27T23:57:20Z")

</div>

Yes I have the same display! For my current project I don't find it essential to use an i2c backpack because I don't need extra Arduino pins, but for my future projects with more add on elements it will surely be very helpful. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [October 24, 2024, 11:57pm UTC](https://forum.arduino.cc/t/128-64-lcd-not-working/1250375/20 "2024-10-24T23:57:41Z")

</div>

Closed on October 24, 2024, 11:57pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
