cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with GLCD and U8g2 with STM32L151RET6

Nimit Vachhani
Associate III

Greetings People.

I am trying to interface grphics lcd ST7920 with STM32L using u8g2 and spi interface. I have connected STM32L pins as below

  1. RS pin of LCD with CS
  2. RW pin of LCD with MOSI
  3. E pin of LCD with SCK

The project is written in cube ide and implemented u8g2 functions as mentioned on online articles. Still i am not able to display the string on the lcd.

Any suggestions where things are going wrong. I am not using software spi instead i am using hardware spi. Later i will upload the full project and code if necessary.

Link for graphics lcd is this. Data sheet says controller is KS0108B and on website it says its is ST7920 compatible.

Well i have used u8g2 library of arduino for ST7920 lcd and it works. LCD is tested using arduino with ST7920 mode.

Update : I have attached my cube ide project too.

0 REPLIES 0