Software fix for color inversion


I am encountering an issue with my Renesas MCU-based tool that displays Bluetooth data on an LCD screen. Due to a mistake in my hardware design, I have inverted the red and blue lines in my RGB565 communication. Is there a software solution to exchange the values to be put on the blue pins with the ones of the red pins?

Currently, I am using the RGA library, and I have been able to work around the problem by manually inverting the red and blue components when specifying the color with R_RGA_Get_R8G8B8A8 method. However, I am still experiencing errors when attempting to draw PNG images on the screen.

I have looked through the source files of various drivers and libraries (RGA, VDC, RGA_PNG), but I have not been able to identify a solution to exchange these two components. I am unable to modify my hardware design at this time, so I am hoping to find a software solution to this issue.

If anyone has any suggestions or leads that could help me find a solution, it would be greatly appreciated. Thank you.

Parents Reply Children
No Data