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

📄 9320init.txt

📁 ILITEK9320初始化代码
💻 TXT
字号:
/************* Start Initial Sequence **********// 
   
LCD_set(0x00E5, 0x8000);   // Set the Vcore voltage and this setting is must. 
    LCD_set(0x0000, 0x0001);     // Start internal OSC. 
    LCD_set(0x0001, 0x0100);    // set SS and SM bit 
    LCD_set(0x0002, 0x0700);    // set 1 line inversion 
    LCD_set(0x0003, 0x0030);    // set GRAM write direction and BGR=0.  
    LCD_set(0x0004, 0x0000);    // Resize register 
     
    LCD_set(0x0008, 0x0202);    // set the back porch and front porch 
    LCD_set(0x0009, 0x0000);    // set non-display area refresh cycle ISC[3:0] 
    LCD_set(0x000A, 0x0000);    // FMARK function 
    LCD_set(0x000C, 0x0000);    // RGB interface setting 
    LCD_set(0x000D, 0x0000);    // Frame marker Position 
    LCD_set(0x000F, 0x0000);    // RGB interface polarity 
   
  //*************Power On sequence ****************// 
    LCD_set(0x0010, 0x0000);      // SAP, BT[3:0], AP, DSTB, SLP, STB 
    LCD_set(0x0011, 0x0007);      // DC1[2:0], DC0[2:0], VC[2:0] 
    LCD_set(0x0012, 0x0000);      // VREG1OUT voltage 
    LCD_set(0x0013, 0x0000);      // VDV[4:0] for VCOM amplitude 
      delayms(200);                            // Dis-charge capacitor power voltage 
    LCD_set(0x0010, 0x17B0);      // SAP, BT[3:0], AP, DSTB, SLP, STB 
    LCD_set(0x0011, 0x0037);      // DC1[2:0], DC0[2:0], VC[2:0] 
      delayms(50);                    // Delay 50ms   
    LCD_set(0x0012, 0x013E);      // VREG1OUT voltage 
      delayms(50);                    // Delay 50ms 
    LCD_set(0x0013, 0x1C00);      // VDV[4:0] for VCOM amplitude 
    LCD_set(0x0029, 0x000C);      // VCM[4:0] for VCOMH 
      delayms(50);     
    LCD_set(0x0020, 0x0000);      // GRAM horizontal Address 
    LCD_set(0x0021, 0x0000);      // GRAM Vertical Address 
  
  // ----------- Adjust the Gamma  Curve ----------// 
LCD_set(0x0030, 0x0007); 
LCD_set(0x0031, 0x0403); 
LCD_set(0x0032, 0x0404); 
LCD_set(0x0035, 0x0002); 
LCD_set(0x0036, 0x0707); 
LCD_set(0x0037, 0x0606); 
LCD_set(0x0038, 0x0106); 
LCD_set(0x0039, 0x0007); 
LCD_set(0x003C, 0x0700); 
LCD_set(0x003D, 0x0707);   
  //------------------ Set GRAM area ---------------// 
    LCD_set(0x0050, 0x0000);     // Horizontal GRAM Start Address 
    LCD_set(0x0051, 0x00EF);     // Horizontal GRAM End Address 
    LCD_set(0x0052, 0x0000);     // Vertical GRAM Start Address 
    LCD_set(0x0053, 0x013F);     // Vertical GRAM Start Address 
     
    LCD_set(0x0060, 0x2700);     // Gate Scan Line 
    LCD_set(0x0061, 0x0001);     // NDL,VLE, REV 
    LCD_set(0x006A, 0x0000);     // set scrolling line 
   
    //-------------- Partial Display Control ---------// 
    LCD_set(0x0080, 0x0000); 
    LCD_set(0x0081, 0x0000); 
    LCD_set(0x0082, 0x0000); 
    LCD_set(0x0083, 0x0000); 
    LCD_set(0x0084, 0x0000); 
    LCD_set(0x0085, 0x0000); 
     
    //-------------- Panel Control -------------------// 
    LCD_set(0x0090, 0x0010); 
    LCD_set(0x0092, 0x0000); 
    LCD_set(0x0093, 0x0003); 
    LCD_set(0x0095, 0x0110); 
    LCD_set(0x0097, 0x0000); 
    LCD_set(0x0098, 0x0000); 
    LCD_set(0x0007, 0x0173);     // 262K color and display ON 
} 

⌨️ 快捷键说明

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