Skip to main content
HP_it
Senior II
Apr 3, 2023 6:17 PM UTC
Solved

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

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..

This topic has been closed for replies.
HP_it
HP_itBest answer
Senior II
Apr 7, 2023 7:45 AM UTC

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!

12 replies

HP_it
HP_itAuthor
Senior II
Apr 3, 2023 6:18 PM UTC

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
Apr 5, 2023 6:29 AM UTC

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

HP_it
HP_itAuthorBest answer
Senior II
Apr 7, 2023 7:45 AM UTC

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
Aug 3, 2023 10:33 AM UTC

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
Aug 9, 2023 5:57 PM UTC

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

Visitor II
Aug 23, 2025 7:36 AM UTC

thanks for sharing

Visitor II
Sep 18, 2025 11:24 AM UTC

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