tcon_drv_ar1819.c

来自「TFT显示的源码,附了使用说明书 要下载的速度了」· C语言 代码 · 共 35 行

C
35
字号
//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 + =
减小字号Ctrl + -
显示快捷键?