Skip to main content
psilvaggio
Associate III
December 22, 2021
Solved

Circle and Shape Widget not the correct color on the LCD

  • December 22, 2021
  • 11 replies
  • 2661 views

The circles and shape widgets in my application do not display the correct color on my LCD, they all show as (looks like) pure white. They appear fine when run in the simulator. Box widget colors are fine, as are images and buttons.

Any clues on why colors appear fine in the simulator but not on the application LCD?

Edit: note this is on TouchGFX version 4.18.0

This topic has been closed for replies.
Best answer by Romain DIELEMAN

Hi,

Maybe try to use the XRGB painter. They use only 32-bit word writes while the ARGB8888 painters use byte writes.

/Romain

11 replies

Peter BENSCH
ST Technical Moderator
December 22, 2021

Welcome, @psilvaggio​, to the community!

You didn't mention which hardware you're testing on: your own or a DISCOVERY from ST?

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
psilvaggio
Associate III
December 22, 2021

Sorry about that. This is my own hardware. STM32F429IIT6 with external RAM and 24-bit LCD

Peter BENSCH
ST Technical Moderator
December 22, 2021

OK, with your own hardware, of course, all components have to interact and be configured correctly. Since there are so many possibilities for a misconfiguration it will be difficult to discuss that here.

Have you already worked through the tutorials, e.g. the Hardware Selection and the Board Bring Up?

Maybe you find information in similar articles in the Knowledge Base, like e.g. this one?

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
psilvaggio
Associate III
February 15, 2022

I found a workaround for the black outline on Canvas widgets issue which resulted from switching to the XRGB8888 format. If I have a Box widget the size of the entire screen on top of everything else with alpha > 0 (I made it 1 so it didn't affect the look of the rest of the screen), the black outline problem went away and everything looks good. It would still be nice to see a little more explanation/documentation on why ARGB8888 doesn't support non-byte-write, but this is no longer a show-stopper issue.