Skip to main content
HP_it
Senior II
April 3, 2023
Solved

Color artifacts on display (SPI+18-bit RGB) using ST7701s driver

  • April 3, 2023
  • 5 replies
  • 14665 views

Hi!

I'm getting 2 round displays up and running using tGFX on an STM32F767 (custom board, external SDRAM and QSPI)

I think almost everything is running but I have some weird artifacts. the clearest I can show is the color wheel test.

While the image is 24-bit and the display is 18-bit I wonder why I see the clear lines across the display (Please disregard the red stripe horisontally - that's a smudge on the protective film)

To me it would seem like something like a rounding of the color information but that would make much more sense if I was coming from less than 18-bit.

Anyone who can offer some insights here or point me in a direction? I tried with a real image and certain colors just get REALLY wonky..

Best answer by HP_it

Aaand it's solved :)

This was due to the pixel polarity - it was inverted.

Fun fact - when debugging this you can break the processor and play around with the bit settings in the SFR tab. it was working wonders for me!

5 replies

HP_it
HP_itAuthor
Senior II
April 3, 2023

so - on the testimage (the one with all the 'test' on it) the two lines beneath the white bar was supposed to be a grayscale bar, one in each direction.

HP_it
HP_itAuthor
Senior II
April 5, 2023

Here's another example - it's really not good :\

HP_it
HP_itAuthorBest answer
Senior II
April 7, 2023

Aaand it's solved :)

This was due to the pixel polarity - it was inverted.

Fun fact - when debugging this you can break the processor and play around with the bit settings in the SFR tab. it was working wonders for me!

KAgga.1
Associate III
August 3, 2023

Hello @HP_it ,
I'm also facing an issue while interfacing ST7701s RGB+SPI(9-Bit) based display. Well, I'm able to properly interface RGB only display.
Could you help by sharing the configuration or demo project for it.

Regards,
Keshav Aggarwal

Msolinas
Senior
August 9, 2023

Hi kagga.1, can you share your initalization? I can't start my display in no way... thanks.

Visitor II
August 23, 2025

thanks for sharing

Visitor II
September 18, 2025

Hi,
I am using STM32H723ZG controller with 268*800 resolution display which has ST7701 driver IC and using 9bit SPI, I configured all the necessary parameter but i am getting few lines on the display, but i am not able it figure it out what actually I made wrong. If anyone had idea on this please reply on this issue for more information i have added the image of LCD where i am getting few lines.

LM1_0-1758194607379.jpeg