void Init_ST7789V_HSD280()
{
LCD_reset();
write_cmd(0x11);
delayms(150); //Delay 120ms
//--------------------------------ST7789V Frame rate setting-----------------
write_cmd(0xb2);
write_dat(0x0c);
write_dat(0x00);
write_dat(0x33);
write_dat(0x33);
write_cmd(0xb7);
write_dat(0x35);
//---------------------------------ST7789S Power setting--------------------------------------//
write_cmd(0xbb);
write_dat(0x28);
write_cmd(0xc0);
write_dat(0x2c);
write_cmd(0xc2);
write_dat(0x01);
write_cmd(0xc3);
write_dat(0x10);
write_cmd(0xc4);
write_dat(0x20);
write_cmd(0xc6);
write_dat(0x0f);
write_cmd(0xd0);
write_dat(0xa4);
write_dat(0xa1);
//--------------------------------ST7789S gamma setting---------------------------------------//
write_cmd(0xe0);
write_dat(0xd0);
write_dat(0x00);
write_dat(0x02);
write_dat(0x07);
write_dat(0x0a);
write_dat(0x28);
write_dat(0x32);
write_dat(0x44);
write_dat(0x42);
write_dat(0x06);
write_dat(0x0e);
write_dat(0x12);
write_dat(0x14);
write_dat(0x17);
write_cmd(0xe1);
write_dat(0xd0);
write_dat(0x00);
write_dat(0x02);
write_dat(0x07);
write_dat(0x0a);
write_dat(0x28);
write_dat(0x31);
write_dat(0x54);
write_dat(0x47);
write_dat(0x0e);
write_dat(0x1c);
write_dat(0x17);
write_dat(0x1b);
write_dat(0x1e);
/*
//*********SET RGB Interfae***************
write_cmd(0xB0);
write_dat(0x11); //set RGB interface and DE mode.
write_dat(0xF0);
// write_dat(0x00);
write_cmd(0xB1);
write_dat(0x40); // set DE mode ; SET Hs,Vs,DE,DOTCLK signal polarity
write_dat(0x09);
write_dat(0x14);
*/
//-------------display and color format setting--------------//
write_cmd(0x36);
write_dat(0x00);
write_cmd(0x3a);
write_dat(0x65);
write_cmd(0x29);
delayms(50);
}