Visitor II
August 20, 2021
Question
I would like to perform a Red Blue Swap for my LCD display, may I know what are the options available?
- August 20, 2021
- 1 reply
- 1425 views
An example would be having a pixel color of #0000FF(R = 0, G = 0, B = 255) in TouchGFX designer to be displayed on the physical lcd screen as #FF0000 (R = 255, G = 0, B = 0). I have tried the methods below:
- Modifying the image conversion process such that red and blue pixel data in the resultant C++ files are swapped. I am assuming that $(touchgfx_path)/framework/tools/imageconvert/build/win/imageconvert.out does this conversion. Is there an option to make imagecovert.out perform some operations and generate C++ files in the RGB/BGR format just like the way LCD-Image-Converter-20161012(as recommended AN4861) tool does it in the matrix? Refer to the differences between the images - BGR.png and RGB.png attached.
- Editing the DMA2D registers in STM32H7DMA.cpp. I have tried this method with limited success. Some images are not converted and some texts are partially converted.
Please let me know I am doing something wrong or if there are any methods to perform the red blue swap. Thanks!
