drawBitmap change my image color

I have a button image with these colors (see file) and after the convertion with

http://www.rinkydinkelectronics.com/_t_doimageconverter565.php

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);

buttonCOAXON.png

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.

David.

Inside my initlcd.h I have this line so it should be correct for RGB standard

LCD_Write_DATA(0x22);

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 ?

LCD_Write_COM(0x36);
// LCD_Write_DATA(0x22);
LCD_Write_DATA(0b00001010);

but following the datasheet of the SSD1963 this bit should be to 0 for the RGB

A[3] : RGB / BGR order (POR = 0)

This bit controls the RGB data order transferred from the SSD1963’s frame buffer to the display panel.

0 RGB
1 BGR