I have a button image with these colors (see file) and after the convertion with
in the center I see blue instead of red, why ?
#define IN_BUTTON_W (70)
#define IN_BUTTON_H (36)
#define IN_COAX_X (10)
#define IN_COAX_Y (220)
myGLCD.drawBitmap(IN_COAX_X, IN_COAX_Y, IN_BUTTON_W, IN_BUTTON_H, buttonCOAXON);
Your PNG image shows COAX in red.
All TFT controllers can configure colours as RGB or BGR. One bit in the MADCTL register for most controllers.
You can check your SSD1963 datasheet.
Inside my initlcd.h I have this line so it should be correct for RGB standard
I use this setting at the begin of the program
UTFT myGLCD(SSD1963_480,38,39,40,41); //(byte model, int RS, int WR, int CS, int RST, int SER)
Solved with this setting but it was correct the default.
Why now it run good ?
but following the datasheet of the SSD1963 this bit should be to 0 for the RGB
A : RGB / BGR order (POR = 0)
This bit controls the RGB data order transferred from the SSD1963’s frame buffer to the display panel.