ST7789 library fusion

Thanks for the reply David. I made some progress with creating a working init sequence for the fast pantata library. Interestingly, many settings were not really needed.

static const uint8_t PROGMEM st7789_init_cmd[] = {
	
	2, ST77XX_COLMOD, 0x55, /* Interface Pixel Format, 16bits/pixel for RGB/MCU interface */
	2, ST_CMD_DELAY,  10,    
	//6, 0xB2, 0x0c, 0x0c, 0x00, 0x33, 0x33,     /* Porch Setting */
	//2, 0xB7, 0x45,     /* Gate Control, Vgh=13.65V, Vgl=-10.43V */
	//2, 0xBB, 0x2B,     /* VCOM Setting, VCOM=1.175V */
	//2, 0xC0, 0x2C,     /* LCM Control, XOR: BGR, MX, MH */
	//3, 0xC2, 0x01, 0xFF,     /* VDV and VRH Command Enable, enable=1 */
	//2, 0xC3, 0x11,     /* VRH Set, Vap=4.4+... */
	//2, 0xC4, 0x20,     /* VDV Set, VDV=0 */
	//3, 0xC6, 0x0F,      /* Frame Rate Control, 60Hz, inversion=0 */
	//2, 0xD0, 0xA4, 0xA1,     /* Power Control 1, AVDD=6.8V, AVCL=-4.8V, VDDS=2.3V */
	//15, 0xE0, 0xD0, 0x00, 0x05, 0x0E, 0x15, 0x0D, 0x37, 0x43, 0x47, 0x09, 0x15, 0x12, 0x16, 0x19,     /* Positive Voltage Gamma Control */
	//15, 0xE1, 0xD0, 0x00, 0x05, 0x0D, 0x0C, 0x06, 0x2D, 0x44, 0x40, 0x0E, 0x1C, 0x18, 0x16, 0x19,     /* Negative Voltage Gamma Control */
	2, ST77XX_MADCTL, 0x08,//(1<<5)|(1<<6),     /* Memory Data Access Control, MX=MV=1, MY=ML=MH=0, RGB=0 */
	5, ST77XX_CASET  , 0x00, ST7789_240x240_XSTART,(240+ST7789_240x240_XSTART) >> 8, (240+ST7789_240x240_XSTART) & 0xFF,  // 15: Column addr set, 4 args, no delay:
                   //     XSTART = 0
                //      XEND = 240
    5, ST77XX_RASET , 0x00,ST7789_240x240_YSTART,(240+ST7789_240x240_YSTART) >> 8, (240+ST7789_240x240_YSTART) & 0xFF,   // 16: Row addr set, 4 args, no delay:
                   //     YSTART = 0
                  //      YEND = 240
    1, ST77XX_INVON ,
	2,  ST_CMD_DELAY,10,
	1, ST77XX_NORON  ,
	2,  ST_CMD_DELAY,10,
	//0x80,0x11,0,     /* Sleep Out */
	//0x80, 0x29, 0,     /* Display On */
	//0xFF, 0, 0
	0
};

Now the fonts are mirrored and red and blue swapped, so I think the library has to be further adapted. I suspect that the setXY() function has to be adapted an probably I'll have to mess with some register settings for scan directions...
The display is really cool and it's interesting to dive deeper into those driver libraries.