Skip to main content
RShan
Associate
Apr 15, 2019 8:22 AM UTC
Question

LTDC Color Order

I'm trying to find a way to change the color order of the LTDC for RGB565. It apears that the link between the memory and the LTDC pins is fixed. I would like to output in order BGR instead of RGB. Nothing stand out in the reference manual (STM32F468) to me. Any ideas or pointers?

Kind Regards,

Rob

This topic has been closed for replies.

2 replies

Vangelis Fortounas
Associate II
Apr 15, 2019 11:32 AM UTC

Hi

The color order manipulated by the higher layer drivers.

In case you use STEmWin, the default conf is BGR

by defining this #define GUI_USE_ARGB (1) inside GUIConf.h can change the mode to RGB

RShan
RShanAuthor
Associate
Apr 17, 2019 1:41 PM UTC

Thanks for the tip Vangelis !