⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 spv518_tcon.h

📁 TFT显示的源码,附了使用说明书 要下载的速度了
💻 H
字号:

//#define	SPV518_OSD_EN
#define	SPV518_GM_EN

//--------------------------- analog panel
#ifdef	A056DN01
const BYTE spv518_tcon_reg_ap1 [] = {0xff,
 3, 4, 5, 6, 7, 8, 9,
 10,11,12,13,14,15,16,17,18,19,
 20,21,22,23,25,26,27,28,29,
 30,31,32,33,34,35,36,37,38,39,
 40,41,42,43,44,45,46,47,48,
                             };
const BYTE spv518_tcon_val_ap1 [] = {0x04,
 0x01,0x1D,0x6c,0x0d,0x10,0xD0,0x00,	// for reverse RG, set addr 06's bit2-3 to 1
 0x00,0x12,0x00,0x19,0x01,0x02,0x01,0x09,0x02,0x10,
 0x00,0x17,0x01,0x00,0x6f,0x01,0x76,0x01,0x54,
 0x01,0x6f,0x01,0x6f,0x01,0x6f,0x01,0x6e,0x01,0x6e,
 0x01,0x64,0x01,0x8d,0x01,0x62,0x01,0x66,0x01,
                             };
#elif defined (PW065XS4)
const BYTE spv518_tcon_reg_ap1 [] = {0xff,
 3, 4, 5, 6, 7, 8, 9,
 10,11,12,13,14,15,16,17,18,19,
 20,21,22,23,25,26,27,28,29,
 30,31,32,33,34,35,36,37,38,39,
 40,41,42,43,44,45,46,47,48,
                             };

const BYTE spv518_tcon_val_ap1 [] = {0x04,
 0x01,0x1a,0x6c,0x01,0x10,0xd0,0x00,
 0x00,0x12,0x00,0x19,0x01,0x02,0x01,0x09,0x02,0x10,
 0x00,0x17,0x01,0x00,0xfa,0x01,0x04,0x02,0xa4,
 0x01,0xfa,0x01,0xfa,0x01,0xfa,0x01,0xf9,0x01,0xf9,
 0x01,0xcf,0x01,0xcf,0x02,0xcd,0x01,0xd1,0x01,
                             };
#elif defined (A060FW02)
const BYTE spv518_tcon_reg_ap1 [] = {0xff,
                              0x04,0x06,0x07,0x08,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,
                              0x10,0x11,0x12,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f,
                              0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,
                              0x30,                      
                             };

const BYTE spv518_tcon_val_ap1 [] = {0x04,
                              0x80,0x0D,0x33,0xd0,0x84,0x12,0x00,0x19,0x01,0x02,
                              0x01,0x09,0x02,0x77,0x02,0x85,0x02,0x4f,0x02,0x77,
                              0x02,0x0d,0x02,0x0d,0x02,0x85,0x02,0x85,0x02,0x5f,0x02,0xa4,0x02,0x59,0x02,0x6c,
                              0x02,                      
                             };

                                                          
#elif defined (A070FW03)|| defined(AT070TN01) || defined(V070FW05)|| defined(A070FW05)
const BYTE spv518_tcon_reg_ap1 [] = {0xff,
                              0x04,0x06,0x08,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,
                              0x10,0x11,0x12,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f,
                              0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,
                              0x30,                      
                             };

const BYTE spv518_tcon_val_ap1 [] = {0x04,
                              0x2e,0x15,0xd0,0x80,0x12,0x00,0x19,0x01,0x02,
                              0x01,0x09,0x02,0x0d,0x02,0x19,0x02,0xd9,0x01,0x0d,
                              0x02,0x0d,0x02,0x0d,0x02,0x0c,0x02,0x0c,0x02,0xfd,0x01,0x26,0x02,0xf8,0x01,0x02,
                              0x02,                      
                             };
#elif defined(CLAB090JB01CW)//PAL
//tcon
const BYTE spv518_tcon_reg_ap1 [] = {0xff,
                              0x04,0x06,0x08,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,
                              0x10,0x11,0x12,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f,
                              0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,
                              0x30, 
                             };

const BYTE spv518_tcon_val_ap1 [] = {0x04,
                              0x2e,0x15,0xd0,0x80,0x12,0x00,0x19,0x01,0x02,
                              0x01,0x09,0x02,0x80,0x02,0x91,0x02,0x46,0x01,0x80,
                              0x02,0x0d,0x02,0x0d,0x02,0x80,0x02,0x80,0x02,0x6c,0x02,0x91,0x02,0x67,0x02,0x77,
                              0x02,    
                             };                              
#elif defined(CLAB090JB01CW_ON_SPV518A_64PIN)
//tcon
const BYTE spv518_tcon_reg_ap1 [] = {0xff,
                              0x04,0x06,0x08,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,
                              0x10,0x11,0x12,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f,
                              0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,
                              0x30, 
                             };

const BYTE spv518_tcon_val_ap1 [] = {0x04,
                              0x2e,0x15,0xd0,0x80,0x12,0x00,0x19,0x01,0x02,
                              0x01,0x09,0x02,0x80,0x02,0x91,0x02,0x46,0x01,0x80,
                              0x02,0x0d,0x02,0x0d,0x02,0x80,0x02,0x80,0x02,0x6c,0x02,0x91,0x02,0x67,0x02,0x77,
                              0x02,    
                             };                              
//#endif
//--------------------- digital panel
//#ifdef AU102D
#elif defined(A070FW05_ON_SPV518A_64PIN)
//tcon
const BYTE spv518_tcon_reg_ap1 [] = {0xff,
                              0x04,0x06,0x08,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,
                              0x10,0x11,0x12,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f,
                              0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,
                              0x30,                      
                             };

const BYTE spv518_tcon_val_ap1 [] = {0x04,
                              0x2e,0x15,0xd0,0x80,0x12,0x00,0x19,0x01,0x02,
                              0x01,0x09,0x02,0x0d,0x02,0x19,0x02,0xd9,0x01,0x0d,
                              0x02,0x0d,0x02,0x0d,0x02,0x0c,0x02,0x0c,0x02,0xfd,0x01,0x26,0x02,0xf8,0x01,0x02,
                              0x02,                      
                             };

#elif defined (A102VW01)

const BYTE spv518_tcon_reg_ap1 [] = {0xff,
0x05,
0x3b,
0x0a,
0x06,
0x04,

0x09,
0x08,
0x0b,
0x0c,
0x0d,

0x0e,
0x0f,
0x10,
0x11,
0x12,

0x13,
0x14,
0x15,
0x16,
0x18,

0x19,
0x1a,
0x1b,
0x1c,
0x1d,

0x1e,
0x1f,
0x20,
0x21,
0x22,

0x23,
0x24,
0x25,
0x26,
0x27,
0x28,
0x29,
0x2a,
0x2b,
0x2c,
0x2d,
0x2e,
0x2f,
0x30,
0x33,
0x34,
0x35,
0x36,
0x37,
0x38,
0x39,
                              0x06,	// RGB_ORDER
                             };

const BYTE spv518_tcon_val_ap1 [] = {0x04,
0x6d,
0x00,	// Turn off Dithering, because PCB layout err
//0x02,
0x06,	// Tie OEV to GND (for 10.2" AU), POL set to High
0x03,
0x35,

0x80,
0xd0,
0x12,
0x00,
0x19,

0x01,
0x02,
0x01,
0x09,
0x02,

0x11,
0x00,
0x11,
0x00,
0x01,

0x6e,
0x03,
0x71,
0x03,
//0x40,
0x0,	// Tie OEV to GND (for 10.2" AU)

//0x03,
//0x42,
//0x03,
0x0,	// Tie OEV to GND (for 10.2" AU)
0x0,	// Tie OEV to GND (for 10.2" AU)
0x0,	// Tie OEV to GND (for 10.2" AU)
0x42,
0x03,

0x42,
0x03,
0x6c,
0x03,
0x6c,
0x03,
0x41,
0x03,
0x92,
0x01,
0xa3,
0x00,
0xd1,
0x03,
0x00,
0xF5,
0x03,
0x0D,
0x02,
0x1F,
0x03,
                              0x17,	// RGB_ORDER
                             };
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -