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

📄 osddraw.h

📁 MCU为:ATMGEA128
💻 H
📖 第 1 页 / 共 2 页
字号:
//---------------------------------------------------------------------------
// Terawins Inc. Company Confidential Strictly Private
//
// $Archive: OSDDraw.h $
// $Revision: 0.01 $
// $Author: jwang $
// $Date: 2002/06/31 $
//
// --------------------------------------------------------------------------
// >>>>>>>>>>>>>>>>>>>>>>>>> COPYRIGHT NOTICE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// --------------------------------------------------------------------------
// Copyright 2002(c) Terawins Inc.
// --------------------------------------------------------------------------

#if !defined(__OSDDRAW_H__)
#define __OSDDRAW_H__


#define MAIN_MENU_TOTAL_LINES		12
#define SUB_MENU_TOTAL_LINES			7  	//DigiMax OSD Language sub-menu
#define TOTAL_FONT_NUM	 			sizeof(AllFonts)/sizeof(unsigned char*)
//#define TOTAL_FONT_NUM					64
#define FONT_DATA_START_ADDRESS		0x0000
#define MENU_RAM_START_ADDRESS	        0xa00
//((TOTAL_FONT_NUM*FONT_HEIGHT)/32+1)*32-64  //768
#define CHAR_MAIN_MENU_START		((MENU_RAM_START_ADDRESS>>5)&0xFF)
#define CHAR_RAM_END               		CHAR_MAIN_MENU_START+4

const unsigned char cOSDMenuLutData[32]={
	//0xGB, 0x0R
	0x00,0x00, //0
  	0x0f,0x00, //1 blue
  	0x00,0x00, //2 black
  	0x0f,0x0a, //3 purple
	0x0e,0x00, //4 dark blue
  	0xf8,0x00,  //5 green
	0x22,0x0A, //6  red
  	0xc4,0x0c, //7 olive
	0x88,0x05, //8 light grey
  	0x0f,0x0f,//0xb9,0x0b,  //9 purple
  	0xBD,0x05, //A  purple
  	0xff,0x00,  //B
  	0x0f,0x0a,//0xA3,0x0A, 	//C Yellow
	0xcc,0x0c, //D light grey
	0x68,0x03,  //E Light Blue Main Menu Background or 0x79, 0x04 which is a litter light
  	0xff,0x0f,  //F white
};

//*	字库 */
/*BmpFileName = 4.bmp  model= 1  12x18*/
const unsigned char font_30[]={ //Digital 0
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x1f,0xc0,0x3f,0xe0,0x70,0xe0,0x61,0x60,0x63,
0x60,0x66,0x60,0x6c,0x60,0x78,0x60,0x70,0xe0,0x60,0xc0,0x3f,0x80,0x1f,0x00,0x00,0x00,0x00
};
const unsigned char font_31[]={ //Digital 1
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x0e,0x00,0x1e,0x00,0x06,0x00,0x06,
0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x80,0x1f,0x80,0x1f,0x00,0x00,0x00,0x00
};
const unsigned char font_32[]={ //Digital 2
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x0f,0xc0,0x1f,0xe0,0x38,0x60,0x30,0xe0,0x00,
0xc0,0x01,0x80,0x03,0x00,0x07,0x00,0x0e,0x00,0x1c,0xe0,0x3f,0xe0,0x3f,0x00,0x00,0x00,0x00
};
const unsigned char font_33[]={ //Digital 3
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x1f,0xc0,0x3f,0xe0,0x70,0x60,0x60,0x60,0x00,
0xc0,0x03,0xc0,0x03,0x60,0x00,0x60,0x60,0xe0,0x70,0xc0,0x3f,0x80,0x1f,0x00,0x00,0x00,0x00
};
const unsigned char font_34[]={ //Digital 4
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x03,0xc0,0x07,0xc0,0x0e,0xc0,0x1c,0xc0,0x38,
0xc0,0x70,0xc0,0x60,0xc0,0x60,0xe0,0x7f,0xe0,0x7f,0xc0,0x00,0xc0,0x00,0x00,0x00,0x00,0x00
};
const unsigned char font_35[]={ //Digital 5
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x7f,0xe0,0x7f,0x00,0x60,0x00,0x60,0x80,0x7f,
0xc0,0x7f,0xe0,0x00,0x60,0x00,0x60,0x60,0xe0,0x70,0xc0,0x3f,0x80,0x1f,0x00,0x00,0x00,0x00
};
const unsigned char font_36[]={  //Digital 6
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x1f,0xc0,0x3f,0xe0,0x70,0x60,0x60,0x00,0x60,
0x80,0x6f,0xc0,0x7f,0xe0,0x70,0x60,0x60,0xe0,0x70,0xc0,0x3f,0x80,0x1f,0x00,0x00,0x00,0x00
};
const unsigned char font_37[]={ //Digital 7
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x7f,0xe0,0x7f,0xe0,0x00,0xc0,0x01,0x80,0x03,
0x00,0x07,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x00,0x00,0x00
};
const unsigned char font_38[]={ //Digital 8
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x1f,0xc0,0x3f,0xe0,0x70,0x60,0x60,0xc0,0x30,
0xc0,0x3f,0xe0,0x7f,0xe0,0x70,0x60,0x60,0xe0,0x70,0xc0,0x3f,0x80,0x1f,0x00,0x00,0x00,0x00
};
const unsigned char font_39[]={ //Digital 9
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x1f,0xc0,0x3f,0xe0,0x70,0x60,0x60,0xe0,0x70,
0xe0,0x3f,0xe0,0x1f,0x60,0x00,0x60,0x60,0xe0,0x70,0xc0,0x3f,0x80,0x1f,0x00,0x00,0x00,0x00
};
#if 0
const unsigned char font_411[]={ //Brightness ICON test A
0x00,0x08,0x00,0x08,0x00,0x14,0x00,0x14,0x00,0x14,0x00,0x22,0x00,0x22,0x00,0x3E,0x00,0x41,
0x00,0x41,0x00,0xE3,0x00,0x00,0x00,0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00
};
const unsigned char font_41[]={ //Brightness ICON
0x00,0x00,0x10,0x00,0x10,0x00,0x10,0x03,0xb0,0x03,0xf0,0x01,0xc0,0x00,0x80,0x01,0x80,0x0f,
0x80,0x0f,0x80,0x01,0xc0,0x00,0xf0,0x01,0xb0,0x03,0x10,0x03,0x10,0x00,0x10,0x00,0x00,0x00
};
const unsigned char font_42[]={ //Brightness ICON
0x00,0x00,0x00,0x80,0x00,0x80,0x00,0x8c,0x00,0xdc,0x00,0xf8,0x00,0x30,0x00,0x18,0x00,0x1f,
0x00,0x1f,0x00,0x18,0x00,0x30,0x00,0xf8,0x00,0xdc,0x00,0x8c,0x00,0x80,0x00,0x80,0x00,0x00
};

const unsigned char font_43[]={ //Contrast ICON
0x00,0x00,0x00,0x00,0x30,0x00,0xf0,0x00,0xc0,0x01,0x00,0x03,0x00,0x03,0x00,0x06,0x00,0x06,
0x00,0x06,0x00,0x06,0x00,0x03,0x00,0x03,0xc0,0x01,0xf0,0x00,0x30,0x00,0x00,0x00,0x00,0x00
};
const unsigned char font_44[]={ //Contrast ICON
0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0xf0,0x00,0xf8,0x00,0xfc,0x00,0xfc,0x00,0xfe,0x00,0xfe,
0x00,0xfe,0x00,0xfe,0x00,0xfc,0x00,0xfc,0x00,0xf8,0x00,0xf0,0x00,0xc0,0x00,0x00,0x00,0x00
};
const unsigned char font_45[]={ //Color ICON
0x00,0x00,0x00,0x00,0xf0,0x3f,0xf0,0x3f,0x00,0x30,0x30,0x30,0x20,0x30,0x30,0x30,0x20,0x33,
0x00,0x34,0x80,0x35,0x80,0x34,0x00,0x33,0x00,0x30,0xf0,0x3f,0xf0,0x3f,0x00,0x00,0x00,0x00
};
const unsigned char font_46[]={ //Color ICON
0x00,0x00,0x00,0x00,0xc0,0xff,0xc0,0xff,0xc0,0x00,0xc0,0x80,0xc0,0x40,0xc0,0x80,0xc0,0x5c,
0xc0,0x12,0xc0,0x1c,0xc0,0x12,0xc0,0x1c,0xc0,0x00,0xc0,0xff,0xc0,0xff,0x00,0x00,0x00,0x00
};
const unsigned char font_47[]={ //Phase ICON
0x00,0x00,0x00,0x00,0xf0,0x3f,0xf0,0x3f,0x00,0x30,0xa0,0x32,0xa0,0x32,0xa0,0x32,0xa0,0x32,
0xa0,0x32,0xa0,0x32,0xa0,0x32,0xa0,0x32,0x00,0x30,0xf0,0x3f,0xf0,0x3f,0x00,0x00,0x00,0x00
};
const unsigned char font_48[]={ //Phase ICON
0x00,0x00,0x00,0x00,0xc0,0xff,0xc0,0xff,0xc0,0x00,0xc0,0x44,0xc0,0x44,0xc0,0x44,0xc0,0x44,
0xc0,0x44,0xc0,0x44,0xc0,0x44,0xc0,0x44,0xc0,0x00,0xc0,0xff,0xc0,0xff,0x00,0x00,0x00,0x00
};

const unsigned char font_49[]={ //Pixel Clock ICON
0x00,0x00,0xf0,0x3f,0xf0,0x3f,0x00,0x30,0xf0,0x37,0x00,0x34,0x40,0x34,0xc0,0x34,0xf0,0x35,
0xc0,0x34,0x40,0x34,0x00,0x34,0xf0,0x37,0x00,0x30,0xf0,0x3f,0xf0,0x3f,0x00,0x00,0x00,0x00
};
const unsigned char font_4A[]={ //Pixel Clock ICON
0x00,0x00,0xc0,0xff,0xc0,0xff,0xc0,0x00,0xc0,0xfe,0xc0,0x02,0xc0,0x22,0xc0,0x32,0xc0,0xfa,
0xc0,0x32,0xc0,0x22,0xc0,0x02,0xc0,0xfe,0xc0,0x00,0xc0,0xff,0xc0,0xff,0x00,0x00,0x00,0x00
};
#else

const unsigned char font_41[]={ // A
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x00,0x06,
0x00,0x0f,
0x80,0x1f,
0xc0,0x39,
0xe0,0x70,
0x60,0x60,
0xe0,0x7f,
0xe0,0x7f,
0x60,0x60,
0x60,0x60,
0x60,0x60,
0x60,0x60,
0x00,0x00,
0x00,0x00
};

const unsigned char font_42[]={ // B
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x7f,0xc0,0x7f,0xe0,0x30,0x60,0x30,0xc0,0x30,
0xc0,0x3f,0xe0,0x3f,0xe0,0x30,0x60,0x30,0xe0,0x30,0xc0,0x7f,0x80,0x7f,0x00,0x00,0x00,0x00
};

const unsigned char font_43[]={ // C
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x1f,0xc0,0x3f,0xe0,0x70,0x60,0x60,0x00,0x60,
0x00,0x60,0x00,0x60,0x00,0x60,0x60,0x60,0xe0,0x70,0xc0,0x3f,0x80,0x1f,0x00,0x00,0x00,0x00

};
const unsigned char font_44[]={ // D
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x7f,0xc0,0x7f,0xe0,0x60,0x60,0x60,0x60,0x60,
0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0xe0,0x60,0xc0,0x7f,0x80,0x7f,0x00,0x00,0x00,0x00
};
const unsigned char font_45[]={ // E
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x7f,0xe0,0x7f,0x00,0x60,0x00,0x60,0x00,0x60,
0xc0,0x7f,0xc0,0x7f,0x00,0x60,0x00,0x60,0x00,0x60,0xe0,0x7f,0xe0,0x7f,0x00,0x00,0x00,0x00
};
const unsigned char font_46[]={ // F
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x7f,0xe0,0x7f,0x00,0x60,0x00,0x60,0x00,0x60,
0xc0,0x7f,0xc0,0x7f,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x00,0x00,0x00
};
const unsigned char font_47[]={ // G
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x1f,0xc0,0x3f,0xe0,0x70,0x60,0x60,0x00,0x60,
0xe0,0x63,0xe0,0x63,0x60,0x60,0xe0,0x60,0xe0,0x71,0xe0,0x3f,0x60,0x1f,0x00,0x00,0x00,0x00
};
const unsigned char font_48[]={ // H
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,
0xe0,0x7f,0xe0,0x7f,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x00,0x00,0x00,0x00
};
const unsigned char font_49[]={ // I
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x1f,0x80,0x1f,0x00,0x06,0x00,0x06,0x00,0x06,
0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x80,0x1f,0x80,0x1f,0x00,0x00,0x00,0x00
};

const unsigned char font_4A[]={ // J
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x0f,0xe0,0x0f,0x80,0x01,0x80,0x01,0x80,0x01,
0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x61,0x80,0x73,0x00,0x3f,0x00,0x1e,0x00,0x00,0x00,0x00
};

/*
const unsigned char font_4A[]={ // point
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,0xf0,0x00,0xf0,0x00,0x60,0x00,0x00,0x00
};
*/
#endif

const unsigned char font_4B[]={ // K
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x60,0xc0,0x61,0x80,0x63,0x00,0x67,0x00,0x6e,
0x00,0x7c,0x00,0x7c,0x00,0x6e,0x00,0x67,0x80,0x63,0xc0,0x61,0xc0,0x60,0x00,0x00,0x00,0x00
};
const unsigned char font_4C[]={ // L
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,
0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0xe0,0x7f,0xe0,0x7f,0x00,0x00,0x00,0x00
};
const unsigned char font_4D[]={ // M
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x70,0xe0,0x79,0xe0,0x7f,0x60,0x6f,0x60,0x66,
0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x00,0x00,0x00,0x00
};
const unsigned char font_4E[]={ // N
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x60,0x60,0x60,0x60,0x70,0x60,0x78,0x60,0x7c,
0x60,0x6e,0x60,0x67,0xe0,0x63,0xe0,0x61,0xe0,0x60,0x60,0x60,0x60,0x60,0x00,0x00,0x00,0x00
};
const unsigned char font_4F[]={ // O
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x1f,0xc0,0x3f,0xe0,0x70,0x60,0x60,0x60,0x60,
0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0xe0,0x70,0xc0,0x3f,0x80,0x1f,0x00,0x00,0x00,0x00
};
const unsigned char font_50[]={ // P
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x7f,0xc0,0x7f,0xe0,0x60,0x60,0x60,0xe0,0x60,
0xc0,0x7f,0x80,0x7f,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x00,0x00,0x00
};
const unsigned char font_51[]={ // Q
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x1f,0xc0,0x3f,0xe0,0x70,0x60,0x60,0x60,0x60,
0x60,0x60,0x60,0x60,0x60,0x67,0xe0,0x73,0xc0,0x3f,0xe0,0x1e,0x60,0x00,0x00,0x00,0x00,0x00
};
const unsigned char font_52[]={ // R
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x7f,0xc0,0x7f,0xe0,0x60,0x60,0x60,0xe0,0x60,
0xc0,0x7f,0x80,0x7f,0x00,0x6e,0x00,0x67,0x80,0x63,0xc0,0x61,0xe0,0x60,0x00,0x00,0x00,0x00
};
const unsigned char font_53[]={ // S
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x1f,0xc0,0x3f,0xe0,0x70,0x60,0x60,0x00,0x70,
0x80,0x3f,0xc0,0x1f,0xe0,0x00,0x60,0x60,0xe0,0x70,0xc0,0x3f,0x80,0x1f,0x00,0x00,0x00,0x00
};
const unsigned char font_54[]={ // T
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x7f,0xe0,0x7f,0x00,0x06,0x00,0x06,0x00,0x06,
0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x00,0x00,0x00
};

⌨️ 快捷键说明

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