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

📄 tcon_drv_ar1819.c

📁 TFT显示的源码,附了使用说明书 要下载的速度了
💻 C
字号:
//include tft panel//
#if defined(TFT_SUNPLUS_AUO_PANEL)
#define TFT_SUNPLUS_AUO_PANEL_LED_BACKLIGHT
//#define TFT_SUNPLUS_AUO_PANEL_CCFL_BACKLIGHT
#endif

#ifdef TFT_SUNPLUS_AUO_PANEL_LED_BACKLIGHT
    #include "..\panel\tft_sunplus_ar1819_auo_panel_led.h"
    #include "..\panel\tft_sunplus_ar1819_auo_panel_led.c" 
#elif defined(TFT_SUNPLUS_AUO_PANEL_CCFL_BACKLIGHT)
    #include "..\panel\tft_sunplus_ar1819_auo_panel_ccfl.h"
    #include "..\panel\tft_sunplus_ar1819_auo_panel_ccfl.c" 
#endif

//just like the function name
void set_tft_tcon_tv_format(UINT8 panelfmt)
{
    set_ARK1819_format(panelfmt);
    delay_1ms(300);
    WriteI2c(TCONT_I2C_ADDR,0x21,0xf8,1);//addr(0x21h) data 0xf8 -> 0x38;
    WriteI2c(TCONT_I2C_ADDR,0x4e,0x1c,1); // addr(0x4eh) data 0x1c -> 0x44;
    WriteI2c(TCONT_I2C_ADDR,0xf8,0x66,1);//addr(0xf8h) data 0x66 -> 0x62;
}


void reset_tft(void)
{	
   Init_ARK_1819_LCD();//set global
   set_ARK1819_format(tv_format);
   open_ARK1819_backlight(); 
}



⌨️ 快捷键说明

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