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

📄 osd.h

📁 液晶显示器程序代码
💻 H
字号:
#include ".\HEADER\Main_def.h"
#define HINT_V      110
#define HINT_H      91
#define NOTE_V      1
#define NOTE_H      5



//#define OSD_HMAX    (((DH_ACT_END_POS - 312 - 8) / 4) + 1)
#define OSD_HMAX    (((DH_ACT_END_POS - 544) / 4) + 1)
#define OSD_HMIN    (((DH_ACT_END_POS - DISP_WID) / 4) + 1)
#define OSD_HMID    ((OSD_HMAX + OSD_HMIN) / 2)

#define OSD_VMAX    ((DISP_LEN - 250 - 14) / 4)
#define OSD_VMIN    3
#define OSD_VMID    ((OSD_VMIN + OSD_VMAX) / 2)

#define FONT_SELECT_ADDRESS    19 //Suppose Row command include 15 rows and one row_end command
#define FONT_BASE_ADDRESS      640
#define ONE_BIT_FONT_NUM       20
#define TWO_BIT_FONT_NUM       20
#define FOUR_BIT_FONT_NUM      20



#ifdef __MAIN__


// Format
// [Row_Number, Row1_Max_Num, Row2_Max_Num, ... Rown_Max_Num]
unsigned char code Row_Info[][19]      = 
{
	{18, 0, 10, 5, 27, 0, 50, 0, 52, 0, 50, 0, 56, 0, 50, 0, 30, 0, 40},	//Page 1
};

unsigned char code FactRow_Info[][20]      = 
{
//     1  2  3   4  5   6   7    8  9  10 11 12 13 14 15 16 17 18 19 20
     {19,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30},		//anson
};

unsigned char code OSD_Version[]    =
{
    0xab,0x02, //Row 11,Col 2
    0x61,_bb_,24,_nn_,
    0x8b,0x02, //Row 11,Col 2
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,_V_,_1_,0xfb,_0_,_0_,_G_,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,_nn_,
    _end_
};
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


unsigned char code NoCable_ENG[]    =
{
	0xc0,0x00,		((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_,	//anson
	0xc0,0x03,		0x06,0x00,0x28,_nn_,

	0x10,0x00,		0x80,0x83,0x83,0x83,0x80,_nn_,
	0x50,0x00,		0x88,0x88,0x48,0x88,0x88,_nn_,
	0x90,0x00,		0x00,0x05,0x00,0x0f,0x00,_nn_,
	0x10,0x05,		0x00,_nn_,
	
	0x10,0x06,		0x00,0x00,0x90,0x90,0x00,0x00,0x8a,0x8a,0x00,0x8a,_bb_,5,0x00,_bb_,6,_nn_,
	0x50,0x06,		0x14,0x16,0x53,0x54,0x0c,0x0c,_N_,_O_,0x0a,_C_,_A_,_B_,_L_,_E_,0x0c,_bb_,6,_nn_,
	0x90,0x06,		0x00,_bb_,6,0x20,0x20,	0x00,0x20,_bb_,5,0x00,_bb_,6,_nn_,
	
	0xc1,0x00,		0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
	_end_
};



unsigned char code NoCable_GER[]    =
{

    _end_
};



unsigned char code NoCable_FRE[]    =
{

    _end_
};



unsigned char code NoCable_ITA[]    =
{
  
    _end_
};


unsigned char code NoCable_SPA[]    =
{
  
    _end_
};



unsigned char code NoCable_CHI_T[]  =
{
  
    _end_
};



unsigned char code NoCable_CHI_S[]    =
{
 
    _end_
};



unsigned char code NoCable_JAP[]    =
{

    _end_
};

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
unsigned char code NoSignal_ENG[]   =
{
	0xc0,0x00,		((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_,	//anson
	0xc0,0x03,		0x06,0x00,0x28,_nn_,
	
	0x10,0x00,		0x80,0x83,0x83,0x83,0x80,_nn_,
	0x50,0x00,		0x88,0x88,0x48,0x88,0x88,_nn_,
	0x90,0x00,		0x00,0x05,0x00,0x0f,0x00,_nn_,
	0x10,0x05,		0x00,_nn_,
	
	0x10,0x06,		0x00,0x00,0x90,0x90,0x00,0x00,0x8a,0x8a,0x00,0x8c,_bb_,6,0x00,_bb_,5,_nn_,
	0x50,0x06,		0x14,0x20,0x53,0x54,0x0c,0x0c,_N_,_O_,0x0a,_S_,_I_,_G_,_N_,_A_,_L_,0x0c,_bb_,5,_nn_,
	0x90,0x06,		0x00,_bb_,6,0x20,0x20,0x00,0x20,_bb_,6,0x00,_bb_,5,_nn_,
	
	0xc1,0x00,		0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
	_end_
};

unsigned char code NoSignal_FRA[]   =
{
	0xc0,0x00,		((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_,	//anson
	0xc0,0x03,		0x06,0x00,0x28,_nn_,
	
	0x10,0x00,		0x80,0x83,0x83,0x83,0x80,_nn_,
	0x50,0x00,		0x88,0x88,0x48,0x88,0x88,_nn_,
	0x90,0x00,		0x00,0x05,0x00,0x0f,0x00,_nn_,
	0x10,0x05,		0x00,_nn_,
	
	0x10,0x06,		0x00,0x00,0x8a,0x8a,0x8a,0x00,0x8a,0x8a,0x00,0x8c,_bb_,6,0x00,_bb_,5,_nn_,
	0x50,0x06,		0x14,0x20,_P_,_a_,_s_,0x0c,_d_,_e_,0x0a,_s_,_i_,_g_,_n_,_a_,_l_,0x0c,_bb_,5,_nn_,
	0x90,0x06,		0x20,_bb_,6,0x20,0x20,0x00,0x20,_bb_,6,0x00,_bb_,5,_nn_,
	
	0xc1,0x00,		0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
	_end_
};

unsigned char code NoSignal_DEU[]   =
{
	0xc0,0x00,		((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_,	//anson
	0xc0,0x03,		0x06,0x00,0x28,_nn_,
	
	0x10,0x00,		0x80,0x83,0x83,0x83,0x80,_nn_,
	0x50,0x00,		0x88,0x88,0x48,0x88,0x88,_nn_,
	0x90,0x00,		0x00,0x05,0x00,0x0f,0x00,_nn_,
	0x10,0x05,		0x00,_nn_,
	
	0x10,0x06,		0x00,0x8a,0x8a,0x8a,0x8a,0x00,0x00,0x00,0x8c,_bb_,6,0x00,_bb_,6,_nn_,
	0x50,0x06,		0x14,_K_,_e_,_i_,_n_,0x0c,0x0c,0x0a,_S_,_i_,_g_,_n_,_a_,_l_,0x0c,_bb_,6,_nn_,
	0x90,0x06,		0x20,_bb_,6,0x20,0x20,0x20,_bb_,6,0x00,_bb_,6,_nn_,
	
	0xc1,0x00,		0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
	_end_
};

unsigned char code NoSignal_ESP[]   =
{
	0xc0,0x00,		((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_,	//anson
	0xc0,0x03,		0x06,0x00,0x28,_nn_,
	
	0x10,0x00,		0x80,0x83,0x83,0x83,0x80,_nn_,
	0x50,0x00,		0x88,0x88,0x48,0x88,0x88,_nn_,
	0x90,0x00,		0x00,0x05,0x00,0x0f,0x00,_nn_,
	0x10,0x05,		0x00,_nn_,
	
	0x10,0x06,		0x00,0x00,0x90,0x90,0x00,0x00,0x8a,0x8a,0x8c,0x00,0x8c,_bb_,5,0x00,_bb_,5,_nn_,
	0x50,0x06,		0x14,0x20,0x53,0x54,0x0c,0x0c,_S_,_i_,_n_,0x0a,_s_,_e_,0x98,_a_,_l_,0x0c,_bb_,5,_nn_,
	0x90,0x06,		0x00,_bb_,6,0x20,0x20,0x20,0x00,0x20,_bb_,5,0x00,_bb_,5,_nn_,
	
	0xc1,0x00,		0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
	_end_
};

unsigned char code NoSignal_ITA[]   =
{
	0xc0,0x00,		((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_,	//anson
	0xc0,0x03,		0x06,0x00,0x28,_nn_,
	
	0x10,0x00,		0x80,0x83,0x83,0x83,0x80,_nn_,
	0x50,0x00,		0x88,0x88,0x48,0x88,0x88,_nn_,
	0x90,0x00,		0x00,0x08,0x00,0x0f,0x00,_nn_,
	0x10,0x05,		0x00,_nn_,
	
	0x10,0x06,		0x00,0x8a,_bb_,7,0x00,0x8c,_bb_,7,0x00,_bb_,4,_nn_,
	0x50,0x06,		0x14,_A_,_s_,_s_,_e_,_n_,_z_,_a_,0x0c,_s_,_e_,_g_,_n_,_a_,_l_,_e_,0x0c,_bb_,4,_nn_,
	0x90,0x06,		0x20,_bb_,16,0x00,_bb_,4,_nn_,
	
	0xc1,0x00,		0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
	_end_
};

unsigned char code NoSignal_CHI_T[] =
{
	0xc0,0x00,		((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_,	//anson
	0xc0,0x03,		0x06,0x00,0x28,_nn_,
	
	0x10,0x00,		0x80,0x83,0x83,0x83,0x80,_nn_,
	0x50,0x00,		0x88,0x88,0x48,0x88,0x88,_nn_,
	0x90,0x00,		0x00,0x05,0x00,0x0f,0x00,_nn_,
	0x10,0x05,		0x00,_nn_,
	
	0x10,0x06,		0x00,0x00,0x90,0x90,0x00,0x00,0x00,0x00,0x8c,0x00,0x8c,0x00,0x8c,0x00,_bb_,7,_nn_,
	0x50,0x06,		0x14,0x20,0x53,0x54,0x0c,0x0c,0x0a,0x0c,0x3a,0x0c,0x3b,0x0c,0x3c,0x0c,_bb_,7,_nn_,
	0x90,0x06,		0x00,_bb_,8,0x20,0x00,0x20,0x00,0x20,0x00,_bb_,7,_nn_,
	
	0xc1,0x00,		0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
	_end_
};

unsigned char code NoSignal_CHI_S[] =
{
	0xc0,0x00,		((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_,	//anson
	0xc0,0x03,		0x06,0x00,0x28,_nn_,
	
	0x10,0x00,		0x80,0x83,0x83,0x83,0x80,_nn_,
	0x50,0x00,		0x88,0x88,0x48,0x88,0x88,_nn_,
	0x90,0x00,		0x00,0x05,0x00,0x0f,0x00,_nn_,
	0x10,0x05,		0x00,_nn_,
	
	0x10,0x06,		0x00,0x00,0x90,0x90,0x00,0x00,0x00,0x00,0x8c,0x00,0x8c,0x00,0x8c,0x00,_bb_,7,_nn_,
	0x50,0x06,		0x14,0x20,0x53,0x54,0x0c,0x0c,0x0a,0x0c,0x3d,0x0c,0x3e,0x0c,0xe4,0x0c,_bb_,7,_nn_,
	0x90,0x06,		0x00,_bb_,8,0x20,0x00,0x20,0x00,0x20,0x00,_bb_,7,_nn_,
	
	0xc1,0x00,		0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
	_end_
};

unsigned char code NoSignal_JAP[]   =
{
	0xc0,0x00,		((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_,	//anson
	0xc0,0x03,		0x06,0x00,0x28,_nn_,
	
	0x10,0x00,		0x80,0x83,0x83,0x83,0x80,_nn_,
	0x50,0x00,		0x88,0x88,0x48,0x88,0x88,_nn_,
	0x90,0x00,		0x00,0x05,0x00,0x0f,0x00,_nn_,
	0x10,0x05,		0x00,_nn_,
	
	0x10,0x06,		0x00,0x00,0x90,0x90,0x00,0x00,0x00,0x8c,0x00,0x8c,0x00,0x8c,0x00,0x8c,0x00,_bb_,6,_nn_,
	0x50,0x06,		0x14,0x20,0x53,0x54,0x0c,0x0c,0x0a,0xbc,0x0c,0xe4,0x0c,0x3f,0x0c,0xc9,0x0c,_bb_,6,_nn_,
	0x90,0x06,		0x00,_bb_,7,0x20,0x00,0x20,0x00,0x20,0x00,0x20,0x00,_bb_,6,_nn_,
	
	0xc1,0x00,		0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
	_end_
};

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


unsigned char code NoSupport_ENG[]  =
{

	0xc0,0x00,
	((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_,	//anson
//	((DV_ACT_STA_POS/4) >> 2) + 0x30,((DH_ACT_STA_POS/4) >> 2) + 0x20,0xa1,_nn_,
	0xc0,0x03,
	0x06,0x00,0x28,_nn_,

	0x10,0x00,
	0x80,0x83,0x83,0x83,0x80,_nn_,
	
	0x50,0x00,
	0x88,0x88,0x48,0x88,0x88,_nn_,

	0x90,0x00,
	0x00,0x05,0x00,0x0f,0x00,_nn_,
	
	0x10,0x05,
	0x00,_nn_,
	
	0x10,0x06,
	0x00,0x00,0x90,0x90,0x00,0x00,
	0x8a,0x8a,0x00,0x8c,_bb_,7,0x00,_bb_,4,_nn_,
	
	0x50,0x06,
	0x14,0x23,0x53,0x54,0x0c,0x0c,
	0x2d,0x2e,0x0a,0x32,0x34,0x2f,0x2f,0x2e,0x31,0x33,0x0c,_bb_,4,_nn_,
	
	0x90,0x06,
	0x00,_bb_,6,
	0x20,_bb_,14,_nn_,
	
	0xc1,0x00,
	0x3f,0xb9,0x00,_bb_,4,0x60,0x04,0x0f,0x00,0x0a,0x19,_nn_,

	_end_
};



unsigned char code NoSupport_GER[]  =
{

    _end_
};



unsigned char code NoSupport_FRE[]  =
{
 
    _end_
};



unsigned char code NoSupport_ITA[]  =
{

    _end_
};



unsigned char code NoSupport_SPA[]  =
{

    _end_
};



unsigned char code NoSupport_CHI_T[]    =
{
 
    _end_
};



unsigned char code NoSupport_CHI_S[]    =
{
 
    _end_
};



unsigned char code NoSupport_JAP[]  =
{

    _end_
};
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


unsigned char code OSD_RGB[]=
{
	0xc0,0x00,
	((DV_ACT_STA_POS/4) >> 2) + 0x05,((DH_ACT_STA_POS/4) >> 2) + 0x02,0x01,_nn_,
	0xc0,0x03,
	0x06,0x00,0x28,_nn_,

	0x10,0x00,
	0x80,_bb_,5,_nn_,
	
	0x50,0x00,
	0x88,_bb_,5,_nn_,
	
	0x90,0x00,
	0x00,0x00,0x0f,0x00,0x00,_nn_,
	
	0x10,0x05,
	0x00,_nn_,

	0x10,0x06,
	0x00,0x8c,_bb_,8,0x00,_bb_,6,_nn_,
	
	0x50,0x06,
	0x0c,0x31,0x00,0x26,0x00,0x21,0x00,0x00,0x00,
	0x0c,_bb_,6,_nn_,
	
	0x90,0x06,
	0x00,0x20,0x30,0xc0,0x30,_bb_,5,0x00,_bb_,6,_nn_,
	
	0xc1,0x00,
	0x1b,0x9b,0x00,0x00,0x80,0x02,0x80,0x01,0x08,0x00,0x0a,0x19,_nn_,

	_end_

};



unsigned char code OSD_DVI[]=
{
	0xc0,0x00,
	((DV_ACT_STA_POS/4) >> 2) + 0x05,((DH_ACT_STA_POS/4) >> 2) + 0x02,0x01,_nn_,
	0xc0,0x03,
	0x06,0x00,0x28,_nn_,

	0x10,0x00,
	0x80,_bb_,5,_nn_,
	
	0x50,0x00,
	0x88,_bb_,5,_nn_,

	0x90,0x00,
	0x00,0x00,0x0f,0x00,0x00,_nn_,
	
	0x10,0x05,
	0x00,_nn_,
	
	0x10,0x06,
	0x00,0x8c,_bb_,8,0x00,_bb_,6,_nn_,
	
	0x50,0x06,
	0x0c,0x23,0x00,0x35,0x00,0x28,0x00,0x00,0x00,
	0x0c,_bb_,6,_nn_,
	
	0x90,0x06,
	0x00,0x40,0x30,0x40,0x30,0x40,0x30,0x30,0x30,0x00,_bb_,6,_nn_,
	
	0xc1,0x00,
	0x1b,0x9b,0x00,0x00,0x80,0x02,0x80,0x01,0x08,0x00,0x0a,0x19,_nn_,
	
	_end_


};

unsigned char code rgb_OSD_VOLUME[]=
{
    //note : Frame control which a15:a14 is 00:[0] , 01:[4] , 10:[8] , 11[C]
    //                     and   a12     is 0
    //                     and   a11:a0  is among 000 ~ 0xx
    //  example   0xc0,0x00 : a15 & a14 == 1 , a13 & a12 == 0 , a11~a0 is 0
    //  Frame control byte 0 : V delay
    //                byte 1 : H delay
    //                byte 2 : reference page.107

	0xc0,0x00,    //all , Frame control 
	((DV_ACT_STA_POS/4) >> 2) + 0x3b,((DH_ACT_STA_POS/4) >> 2) + 0x1d,0x01,_nn_,	//anson

//-------------------------
	0xc0,0x03,
	0x06,0x00,0x28,_nn_,    //妮┦

⌨️ 快捷键说明

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