显示屏幕常用函数

1.这套驱动适用轮询和DAM方式,每种方式只要改画点函数就行

2.驱动.h文件

#define WHITE         	 0xFFFF
#define BLACK         	 0x0000	  
#define BLUE         	 0x001F  
#define BRED             0XF81F
#define GRED 			 0XFFE0
#define GBLUE			 0X07FF
#define RED           	 0xF800
#define MAGENTA       	 0xF81F
#define GREEN         	 0x07E0
#define CYAN          	 0x7FFF
#define YELLOW        	 0xFFE0
#define BROWN 			 0XBC40 //棕色
#define BRRED 			 0XFC07 //棕红色
#define GRAY  			 0X8430 //灰色
#define DARKBLUE      	 0X01CF	//深蓝色
#define LIGHTBLUE      	 0X7D7C	//浅蓝色  
#define GRAYBLUE       	 0X5458 //灰蓝色


#define LCD_Width		160
#define LCD_Height		80

typedef enum
{
	CharFont_0806 = 0x01,			//0806字符
	CharFont_1206,					//1206字符
	CharFont_1608,					//1608字符
	CharFont_2412,					//1608字符
}CharFont;


typedef enum
{
     CIRCLE_UPPER_LEFT = 0x01,
     CIRCLE_UPPER_RIGHT = 0x02,
     CIRCLE_LOWER_LEFT = 0x04,
     CIRCLE_LOWER_RIGHT = 0x08,
     CIRCLE_ALL = 0x0F,
} circle_option_e;


typedef enum
{
     MODE_NORMAL = 0u,
     MODE_XOR,
} draw_mode_e;


typedef struct
{
	double x, y;
} bezier_curve;


void GRAM_Clear(uint16_t color);
void GRAM_DrawPoint(uint32_t _x, uint32_t _y, uint32_t color);
void GRAM_DrawLine(uint32_t _x, uint32_t _y, uint32_t _xe, uint32_t _ye, uint32_t color);
void GRAM_Draw_hline_pixel(uint16_t x, uint16_t y, uint16_t len, uint16_t color);
void GRAM_Draw_vline_pixel(uint16_t x, uint16_t y, uint16_t len, uint16_t color);
void GRAM_Draw_Dezier_Curve(uint32_t color, uint8_t size, ...);
void GRAM_DrawCircle(uint32_t _x, uint32_t _y, uint32_t _radius, uint32_t color);
void GRAM_DrawCircle_Pixel(uint16_t x0, uint16_t y0, uint16_t rad, circle_option_e option, uint16_t color);
void GRAM_DrawRectangle(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t color);
void GRAM_DrawrRectangle(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t r, uint16_t color);
void GRAM_Draw_Box(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t color);
void GRAM_Draw_rBox(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t r, uint16_t color);
void GRAM_ShowPicture(uint32_t _x, uint32_t _y, uint32_t _xs, uint32_t _ys, uint8_t* pic, uint32_t color);
void GRAM_ShowChar(uint32_t _x, uint32_t _y, uint8_t _char, CharFont _format, uint32_t color);
void GRAM_ShowString(uint32_t _x, uint32_t _y, uint8_t *_char, CharFont _format, uint32_t color);
void GRAM_ShowNum_LU_Max10(uint32_t _x, uint32_t _y, uint32_t _num, uint32_t _width, CharFont _format, uint32_t color);
void GRAM_ShowNum_LI_Max11(uint32_t _x, uint32_t _y, int32_t _num, uint32_t _width, CharFont _format, uint32_t color);
void GRAM_ShowNum_Float_Max15(uint32_t _x, uint32_t _y, float _num, uint32_t _width, CharFont _format, uint32_t color);

3.asc.h文件

//8*6 ASCII
const unsigned char asc2_0806[95][6] =
{
	{0x00,0x00,0x00,0x00,0x00,0x00},/*" ",0*/
	{0x00,0x00,0x00,0x2f,0x00,0x00},/*"!",1*/
	{0x00,0x00,0x07,0x00,0x07,0x00},/*""",2*/
	{0x00,0x14,0x7f,0x14,0x7f,0x14},/*"#",3*/
	{0x00,0x24,0x2a,0x7f,0x2a,0x12},/*"$",4*/
	{0x00,0x62,0x64,0x08,0x13,0x23},/*"%",5*/
	{0x00,0x36,0x49,0x55,0x22,0x50},/*"&",6*/
	{0x00,0x00,0x05,0x03,0x00,0x00},/*"'",7*/
	{0x00,0x00,0x1c,0x22,0x41,0x00},/*"(",8*/
	{0x00,0x00,0x41,0x22,0x1c,0x00},/*")",9*/
	{0x00,0x14,0x08,0x3E,0x08,0x14},/*"*",10*/
	{0x00,0x08,0x08,0x3E,0x08,0x08},/*"+",11*/
	{0x00,0x00,0x00,0xA0,0x60,0x00},/*",",12*/
	{0x00,0x08,0x08,0x08,0x08,0x08},/*"-",13*/
	{0x00,0x00,0x60,0x60,0x00,0x00},/*".",14*/
	{0x00,0x20,0x10,0x08,0x04,0x02},/*"/",15*/
	{0x00,0x3E,0x51,0x49,0x45,0x3E},/*"0",16*/
	{0x00,0x00,0x42,0x7F,0x40,0x00},/*"1",17*/
	{0x00,0x42,0x61,0x51,0x49,0x46},/*"2",18*/
	{0x00,0x21,0x41,0x45,0x4B,0x31},/*"3",19*/
	{0x00,0x18,0x14,0x12,0x7F,0x10},/*"4",20*/
	{0x00,0x27,0x45,0x45,0x45,0x39},/*"5",21*/
	{0x00,0x3C,0x4A,0x49,0x49,0x30},/*"6",22*/
	{0x00,0x01,0x71,0x09,0x05,0x03},/*"7",23*/
	{0x00,0x36,0x49,0x49,0x49,0x36},/*"8",24*/
	{0x00,0x06,0x49,0x49,0x29,0x1E},/*"9",25*/
	{0x00,0x00,0x36,0x36,0x00,0x00},/*":",26*/
	{0x00,0x00,0x56,0x36,0x00,0x00},/*";",27*/
	{0x00,0x08,0x14,0x22,0x41,0x00},/*"<",28*/
	{0x00,0x14,0x14,0x14,0x14,0x14},/*"=",29*/
	{0x00,0x00,0x41,0x22,0x14,0x08},/*">",30*/
	{0x00,0x02,0x01,0x51,0x09,0x06},/*"?",31*/
	{0x00,0x32,0x49,0x59,0x51,0x3E},/*"@",32*/
	{0x00,0x7C,0x12,0x11,0x12,0x7C},/*"A",33*/
	{0x00,0x7F,0x49,0x49,0x49,0x36},/*"B",34*/
	{0x00,0x3E,0x41,0x41,0x41,0x22},/*"C",35*/
	{0x00,0x7F,0x41,0x41,0x22,0x1C},/*"D",36*/
	{0x00,0x7F,0x49,0x49,0x49,0x41},/*"E",37*/
	{0x00,0x7F,0x09,0x09,0x09,0x01},/*"F",38*/
	{0x00,0x3E,0x41,0x49,0x49,0x7A},/*"G",39*/
	{0x00,0x7F,0x08,0x08,0x08,0x7F},/*"H",40*/
	{0x00,0x00,0x41,0x7F,0x41,0x00},/*"I",41*/
	{0x00,0x20,0x40,0x41,0x3F,0x01},/*"J",42*/
	{0x00,0x7F,0x08,0x14,0x22,0x41},/*"K",43*/
	{0x00,0x7F,0x40,0x40,0x40,0x40},/*"L",44*/
	{0x00,0x7F,0x02,0x0C,0x02,0x7F},/*"M",45*/
	{0x00,0x7F,0x04,0x08,0x10,0x7F},/*"N",46*/
	{0x00,0x3E,0x41,0x41,0x41,0x3E},/*"O",47*/
	{0x00,0x7F,0x09,0x09,0x09,0x06},/*"P",48*/
	{0x00,0x3E,0x41,0x51,0x21,0x5E},/*"Q",49*/
	{0x00,0x7F,0x09,0x19,0x29,0x46},/*"R",50*/
	{0x00,0x46,0x49,0x49,0x49,0x31},/*"S",51*/
	{0x00,0x01,0x01,0x7F,0x01,0x01},/*"T",52*/
	{0x00,0x3F,0x40,0x40,0x40,0x3F},/*"U",53*/
	{0x00,0x1F,0x20,0x40,0x20,0x1F},/*"V",54*/
	{0x00,0x3F,0x40,0x38,0x40,0x3F},/*"W",55*/
	{0x00,0x63,0x14,0x08,0x14,0x63},/*"X",56*/
	{0x00,0x07,0x08,0x70,0x08,0x07},/*"Y",57*/
	{0x00,0x61,0x51,0x49,0x45,0x43},/*"Z",58*/
	{0x00,0x00,0x7F,0x41,0x41,0x00},/*"[",59*/
	{0x00,0x55,0x2A,0x55,0x2A,0x55},/*"\",60*/
	{0x00,0x00,0x41,0x41,0x7F,0x00},/*"]",61*/
	{0x00,0x04,0x02,0x01,0x02,0x04},/*"^",62*/
	{0x00,0x40,0x40,0x40,0x40,0x40},/*"_",63*/
	{0x00,0x00,0x01,0x02,0x04,0x00},/*"`",64*/
	{0x00,0x20,0x54,0x54,0x54,0x78},/*"a",65*/
	{0x00,0x7F,0x48,0x44,0x44,0x38},/*"b",66*/
	{0x00,0x38,0x44,0x44,0x44,0x20},/*"c",67*/
	{0x00,0x38,0x44,0x44,0x48,0x7F},/*"d",68*/
	{0x00,0x38,0x54,0x54,0x54,0x18},/*"e",69*/
	{0x00,0x08,0x7E,0x09,0x01,0x02},/*"f",70*/
	{0x00,0x18,0xA4,0xA4,0xA4,0x7C},/*"g",71*/
	{0x00,0x7F,0x08,0x04,0x04,0x78},/*"h",72*/
	{0x00,0x00,0x44,0x7D,0x40,0x00},/*"i",73*/
	{0x00,0x40,0x80,0x84,0x7D,0x00},/*"j",74*/
	{0x00,0x7F,0x10,0x28,0x44,0x00},/*"k",75*/
	{0x00,0x00,0x41,0x7F,0x40,0x00},/*"l",76*/
	{0x00,0x7C,0x04,0x18,0x04,0x78},/*"m",77*/
	{0x00,0x7C,0x08,0x04,0x04,0x78},/*"n",78*/
	{0x00,0x38,0x44,0x44,0x44,0x38},/*"o",79*/
	{0x00,0xFC,0x24,0x24,0x24,0x18},/*"p",80*/
	{0x00,0x18,0x24,0x24,0x18,0xFC},/*"q",81*/
	{0x00,0x7C,0x08,0x04,0x04,0x08},/*"r",82*/
	{0x00,0x48,0x54,0x54,0x54,0x20},/*"s",83*/
	{0x00,0x04,0x3F,0x44,0x40,0x20},/*"t",84*/
	{0x00,0x3C,0x40,0x40,0x20,0x7C},/*"u",85*/
	{0x00,0x1C,0x20,0x40,0x20,0x1C},/*"v",86*/
	{0x00,0x3C,0x40,0x30,0x40,0x3C},/*"w",87*/
	{0x00,0x44,0x28,0x10,0x28,0x44},/*"x",88*/
	{0x00,0x1C,0xA0,0xA0,0xA0,0x7C},/*"y",89*/
	{0x00,0x44,0x64,0x54,0x4C,0x44},/*"z",90*/
	{0x00,0x00,0X00,0X00,0X00,0X00},/*"{",91*/			/*错误*/
	{0x00,0x00,0x00,0xFF,0x00,0x00},/*"|",92*/			/*错误*/
	{0x00,0x02,0xDE,0x20,0x00,0x00},/*"}",93*/			/*错误*/
	{0x02,0x01,0x02,0x04,0x04,0x02},/*"~",94*/			/*错误*/
};

//12*6 ASCII
const unsigned char asc2_1206[95][12] =
{
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*" ",0*/
	{0x00,0x00,0xFC,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00},/*"!",1*/
	{0x00,0x0C,0x02,0x0C,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*""",2*/
	{0x90,0xD0,0xBC,0xD0,0xBC,0x90,0x00,0x03,0x00,0x03,0x00,0x00},/*"#",3*/
	{0x18,0x24,0xFE,0x44,0x8C,0x00,0x03,0x02,0x07,0x02,0x01,0x00},/*"$",4*/
	{0x18,0x24,0xD8,0xB0,0x4C,0x80,0x00,0x03,0x00,0x01,0x02,0x01},/*"%",5*/
	{0xC0,0x38,0xE4,0x38,0xE0,0x00,0x01,0x02,0x02,0x01,0x02,0x02},/*"&",6*/
	{0x08,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"'",7*/
	{0x00,0x00,0x00,0xF8,0x04,0x02,0x00,0x00,0x00,0x01,0x02,0x04},/*"(",8*/
	{0x00,0x02,0x04,0xF8,0x00,0x00,0x00,0x04,0x02,0x01,0x00,0x00},/*")",9*/
	{0x90,0x60,0xF8,0x60,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x00},/*"*",10*/
	{0x20,0x20,0xFC,0x20,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00},/*"+",11*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x06,0x00,0x00,0x00,0x00},/*",",12*/
	{0x20,0x20,0x20,0x20,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"-",13*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00},/*".",14*/
	{0x00,0x80,0x60,0x1C,0x02,0x00,0x04,0x03,0x00,0x00,0x00,0x00},/*"/",15*/
	{0xF8,0x04,0x04,0x04,0xF8,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"0",16*/
	{0x00,0x08,0xFC,0x00,0x00,0x00,0x00,0x02,0x03,0x02,0x00,0x00},/*"1",17*/
	{0x18,0x84,0x44,0x24,0x18,0x00,0x03,0x02,0x02,0x02,0x02,0x00},/*"2",18*/
	{0x08,0x04,0x24,0x24,0xD8,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"3",19*/
	{0x40,0xB0,0x88,0xFC,0x80,0x00,0x00,0x00,0x00,0x03,0x02,0x00},/*"4",20*/
	{0x3C,0x24,0x24,0x24,0xC4,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"5",21*/
	{0xF8,0x24,0x24,0x2C,0xC0,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"6",22*/
	{0x0C,0x04,0xE4,0x1C,0x04,0x00,0x00,0x00,0x03,0x00,0x00,0x00},/*"7",23*/
	{0xD8,0x24,0x24,0x24,0xD8,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"8",24*/
	{0x38,0x44,0x44,0x44,0xF8,0x00,0x00,0x03,0x02,0x02,0x01,0x00},/*"9",25*/
	{0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00},/*":",26*/
	{0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00},/*";",27*/
	{0x00,0x20,0x50,0x88,0x04,0x02,0x00,0x00,0x00,0x00,0x01,0x02},/*"<",28*/
	{0x90,0x90,0x90,0x90,0x90,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"=",29*/
	{0x00,0x02,0x04,0x88,0x50,0x20,0x00,0x02,0x01,0x00,0x00,0x00},/*">",30*/
	{0x18,0x04,0xC4,0x24,0x18,0x00,0x00,0x00,0x02,0x00,0x00,0x00},/*"?",31*/
	{0xF8,0x04,0xE4,0x94,0xF8,0x00,0x01,0x02,0x02,0x02,0x02,0x00},/*"@",32*/
	{0x00,0xE0,0x9C,0xF0,0x80,0x00,0x02,0x03,0x00,0x00,0x03,0x02},/*"A",33*/
	{0x04,0xFC,0x24,0x24,0xD8,0x00,0x02,0x03,0x02,0x02,0x01,0x00},/*"B",34*/
	{0xF8,0x04,0x04,0x04,0x0C,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"C",35*/
	{0x04,0xFC,0x04,0x04,0xF8,0x00,0x02,0x03,0x02,0x02,0x01,0x00},/*"D",36*/
	{0x04,0xFC,0x24,0x74,0x0C,0x00,0x02,0x03,0x02,0x02,0x03,0x00},/*"E",37*/
	{0x04,0xFC,0x24,0x74,0x0C,0x00,0x02,0x03,0x02,0x00,0x00,0x00},/*"F",38*/
	{0xF0,0x08,0x04,0x44,0xCC,0x40,0x00,0x01,0x02,0x02,0x01,0x00},/*"G",39*/
	{0x04,0xFC,0x20,0x20,0xFC,0x04,0x02,0x03,0x00,0x00,0x03,0x02},/*"H",40*/
	{0x04,0x04,0xFC,0x04,0x04,0x00,0x02,0x02,0x03,0x02,0x02,0x00},/*"I",41*/
	{0x00,0x04,0x04,0xFC,0x04,0x04,0x06,0x04,0x04,0x03,0x00,0x00},/*"J",42*/
	{0x04,0xFC,0x24,0xD0,0x0C,0x04,0x02,0x03,0x02,0x00,0x03,0x02},/*"K",43*/
	{0x04,0xFC,0x04,0x00,0x00,0x00,0x02,0x03,0x02,0x02,0x02,0x03},/*"L",44*/
	{0xFC,0x3C,0xC0,0x3C,0xFC,0x00,0x03,0x00,0x03,0x00,0x03,0x00},/*"M",45*/
	{0x04,0xFC,0x30,0xC4,0xFC,0x04,0x02,0x03,0x02,0x00,0x03,0x00},/*"N",46*/
	{0xF8,0x04,0x04,0x04,0xF8,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"O",47*/
	{0x04,0xFC,0x24,0x24,0x18,0x00,0x02,0x03,0x02,0x00,0x00,0x00},/*"P",48*/
	{0xF8,0x84,0x84,0x04,0xF8,0x00,0x01,0x02,0x02,0x07,0x05,0x00},/*"Q",49*/
	{0x04,0xFC,0x24,0x64,0x98,0x00,0x02,0x03,0x02,0x00,0x03,0x02},/*"R",50*/
	{0x18,0x24,0x24,0x44,0x8C,0x00,0x03,0x02,0x02,0x02,0x01,0x00},/*"S",51*/
	{0x0C,0x04,0xFC,0x04,0x0C,0x00,0x00,0x02,0x03,0x02,0x00,0x00},/*"T",52*/
	{0x04,0xFC,0x00,0x00,0xFC,0x04,0x00,0x01,0x02,0x02,0x01,0x00},/*"U",53*/
	{0x04,0x7C,0x80,0xE0,0x1C,0x04,0x00,0x00,0x03,0x00,0x00,0x00},/*"V",54*/
	{0x1C,0xE0,0x3C,0xE0,0x1C,0x00,0x00,0x03,0x00,0x03,0x00,0x00},/*"W",55*/
	{0x04,0x9C,0x60,0x9C,0x04,0x00,0x02,0x03,0x00,0x03,0x02,0x00},/*"X",56*/
	{0x04,0x1C,0xE0,0x1C,0x04,0x00,0x00,0x02,0x03,0x02,0x00,0x00},/*"Y",57*/
	{0x0C,0x84,0x64,0x1C,0x04,0x00,0x02,0x03,0x02,0x02,0x03,0x00},/*"Z",58*/
	{0x00,0x00,0xFE,0x02,0x02,0x00,0x00,0x00,0x07,0x04,0x04,0x00},/*"[",59*/
	{0x00,0x0E,0x30,0xC0,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x00},/*"\",60*/
	{0x00,0x02,0x02,0xFE,0x00,0x00,0x00,0x04,0x04,0x07,0x00,0x00},/*"]",61*/
	{0x00,0x04,0x02,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"^",62*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x08,0x08,0x08,0x08,0x08},/*"_",63*/
	{0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"`",64*/
	{0x00,0x40,0xA0,0xA0,0xC0,0x00,0x00,0x01,0x02,0x02,0x03,0x02},/*"a",65*/
	{0x04,0xFC,0x20,0x20,0xC0,0x00,0x00,0x03,0x02,0x02,0x01,0x00},/*"b",66*/
	{0x00,0xC0,0x20,0x20,0x60,0x00,0x00,0x01,0x02,0x02,0x02,0x00},/*"c",67*/
	{0x00,0xC0,0x20,0x24,0xFC,0x00,0x00,0x01,0x02,0x02,0x03,0x02},/*"d",68*/
	{0x00,0xC0,0xA0,0xA0,0xC0,0x00,0x00,0x01,0x02,0x02,0x02,0x00},/*"e",69*/
	{0x00,0x20,0xF8,0x24,0x24,0x04,0x00,0x02,0x03,0x02,0x02,0x00},/*"f",70*/
	{0x00,0x40,0xA0,0xA0,0x60,0x20,0x00,0x07,0x0A,0x0A,0x0A,0x04},/*"g",71*/
	{0x04,0xFC,0x20,0x20,0xC0,0x00,0x02,0x03,0x02,0x00,0x03,0x02},/*"h",72*/
	{0x00,0x20,0xE4,0x00,0x00,0x00,0x00,0x02,0x03,0x02,0x00,0x00},/*"i",73*/
	{0x00,0x00,0x20,0xE4,0x00,0x00,0x08,0x08,0x08,0x07,0x00,0x00},/*"j",74*/
	{0x04,0xFC,0x80,0xE0,0x20,0x20,0x02,0x03,0x02,0x00,0x03,0x02},/*"k",75*/
	{0x04,0x04,0xFC,0x00,0x00,0x00,0x02,0x02,0x03,0x02,0x02,0x00},/*"l",76*/
	{0xE0,0x20,0xE0,0x20,0xC0,0x00,0x03,0x00,0x03,0x00,0x03,0x00},/*"m",77*/
	{0x20,0xE0,0x20,0x20,0xC0,0x00,0x02,0x03,0x02,0x00,0x03,0x02},/*"n",78*/
	{0x00,0xC0,0x20,0x20,0xC0,0x00,0x00,0x01,0x02,0x02,0x01,0x00},/*"o",79*/
	{0x20,0xE0,0x20,0x20,0xC0,0x00,0x08,0x0F,0x0A,0x02,0x01,0x00},/*"p",80*/
	{0x00,0xC0,0x20,0x20,0xE0,0x00,0x00,0x01,0x02,0x0A,0x0F,0x08},/*"q",81*/
	{0x20,0xE0,0x40,0x20,0x20,0x00,0x02,0x03,0x02,0x00,0x00,0x00},/*"r",82*/
	{0x00,0x60,0xA0,0xA0,0x20,0x00,0x00,0x02,0x02,0x02,0x03,0x00},/*"s",83*/
	{0x00,0x20,0xF8,0x20,0x00,0x00,0x00,0x00,0x01,0x02,0x02,0x00},/*"t",84*/
	{0x20,0xE0,0x00,0x20,0xE0,0x00,0x00,0x01,0x02,0x02,0x03,0x02},/*"u",85*/
	{0x20,0xE0,0x20,0x80,0x60,0x20,0x00,0x00,0x03,0x01,0x00,0x00},/*"v",86*/
	{0x60,0x80,0xE0,0x80,0x60,0x00,0x00,0x03,0x00,0x03,0x00,0x00},/*"w",87*/
	{0x20,0x60,0x80,0x60,0x20,0x00,0x02,0x03,0x00,0x03,0x02,0x00},/*"x",88*/
	{0x20,0xE0,0x20,0x80,0x60,0x20,0x08,0x08,0x07,0x01,0x00,0x00},/*"y",89*/
	{0x00,0x20,0xA0,0x60,0x20,0x00,0x00,0x02,0x03,0x02,0x02,0x00},/*"z",90*/
	{0x00,0x00,0x20,0xDE,0x02,0x00,0x00,0x00,0x00,0x07,0x04,0x00},/*"{",91*/
	{0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x0F,0x00,0x00},/*"|",92*/
	{0x00,0x02,0xDE,0x20,0x00,0x00,0x00,0x04,0x07,0x00,0x00,0x00},/*"}",93*/
	{0x02,0x01,0x02,0x04,0x04,0x02,0x00,0x00,0x00,0x00,0x00,0x00},/*"~",94*/
};  
//16*8 ASCII
const unsigned char asc2_1608[95][16] =
{	  
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*" ",0*/
	{0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x30,0x00,0x00,0x00},/*"!",1*/
	{0x00,0x10,0x0C,0x06,0x10,0x0C,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*""",2*/
	{0x40,0xC0,0x78,0x40,0xC0,0x78,0x40,0x00,0x04,0x3F,0x04,0x04,0x3F,0x04,0x04,0x00},/*"#",3*/
	{0x00,0x70,0x88,0xFC,0x08,0x30,0x00,0x00,0x00,0x18,0x20,0xFF,0x21,0x1E,0x00,0x00},/*"$",4*/
	{0xF0,0x08,0xF0,0x00,0xE0,0x18,0x00,0x00,0x00,0x21,0x1C,0x03,0x1E,0x21,0x1E,0x00},/*"%",5*/
	{0x00,0xF0,0x08,0x88,0x70,0x00,0x00,0x00,0x1E,0x21,0x23,0x24,0x19,0x27,0x21,0x10},/*"&",6*/
	{0x10,0x16,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"'",7*/
	{0x00,0x00,0x00,0xE0,0x18,0x04,0x02,0x00,0x00,0x00,0x00,0x07,0x18,0x20,0x40,0x00},/*"(",8*/
	{0x00,0x02,0x04,0x18,0xE0,0x00,0x00,0x00,0x00,0x40,0x20,0x18,0x07,0x00,0x00,0x00},/*")",9*/
	{0x40,0x40,0x80,0xF0,0x80,0x40,0x40,0x00,0x02,0x02,0x01,0x0F,0x01,0x02,0x02,0x00},/*"*",10*/
	{0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x1F,0x01,0x01,0x01,0x00},/*"+",11*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xB0,0x70,0x00,0x00,0x00,0x00,0x00},/*",",12*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x01},/*"-",13*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,0x00,0x00},/*".",14*/
	{0x00,0x00,0x00,0x00,0x80,0x60,0x18,0x04,0x00,0x60,0x18,0x06,0x01,0x00,0x00,0x00},/*"/",15*/
	{0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00},/*"0",16*/
	{0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00},/*"1",17*/
	{0x00,0x70,0x08,0x08,0x08,0x88,0x70,0x00,0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00},/*"2",18*/
	{0x00,0x30,0x08,0x88,0x88,0x48,0x30,0x00,0x00,0x18,0x20,0x20,0x20,0x11,0x0E,0x00},/*"3",19*/
	{0x00,0x00,0xC0,0x20,0x10,0xF8,0x00,0x00,0x00,0x07,0x04,0x24,0x24,0x3F,0x24,0x00},/*"4",20*/
	{0x00,0xF8,0x08,0x88,0x88,0x08,0x08,0x00,0x00,0x19,0x21,0x20,0x20,0x11,0x0E,0x00},/*"5",21*/
	{0x00,0xE0,0x10,0x88,0x88,0x18,0x00,0x00,0x00,0x0F,0x11,0x20,0x20,0x11,0x0E,0x00},/*"6",22*/
	{0x00,0x38,0x08,0x08,0xC8,0x38,0x08,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00},/*"7",23*/
	{0x00,0x70,0x88,0x08,0x08,0x88,0x70,0x00,0x00,0x1C,0x22,0x21,0x21,0x22,0x1C,0x00},/*"8",24*/
	{0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x00,0x31,0x22,0x22,0x11,0x0F,0x00},/*"9",25*/
	{0x00,0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00},/*":",26*/
	{0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x60,0x00,0x00,0x00,0x00},/*";",27*/
	{0x00,0x00,0x80,0x40,0x20,0x10,0x08,0x00,0x00,0x01,0x02,0x04,0x08,0x10,0x20,0x00},/*"<",28*/
	{0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x00,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x00},/*"=",29*/
	{0x00,0x08,0x10,0x20,0x40,0x80,0x00,0x00,0x00,0x20,0x10,0x08,0x04,0x02,0x01,0x00},/*">",30*/
	{0x00,0x70,0x48,0x08,0x08,0x08,0xF0,0x00,0x00,0x00,0x00,0x30,0x36,0x01,0x00,0x00},/*"?",31*/
	{0xC0,0x30,0xC8,0x28,0xE8,0x10,0xE0,0x00,0x07,0x18,0x27,0x24,0x23,0x14,0x0B,0x00},/*"@",32*/
	{0x00,0x00,0xC0,0x38,0xE0,0x00,0x00,0x00,0x20,0x3C,0x23,0x02,0x02,0x27,0x38,0x20},/*"A",33*/
	{0x08,0xF8,0x88,0x88,0x88,0x70,0x00,0x00,0x20,0x3F,0x20,0x20,0x20,0x11,0x0E,0x00},/*"B",34*/
	{0xC0,0x30,0x08,0x08,0x08,0x08,0x38,0x00,0x07,0x18,0x20,0x20,0x20,0x10,0x08,0x00},/*"C",35*/
	{0x08,0xF8,0x08,0x08,0x08,0x10,0xE0,0x00,0x20,0x3F,0x20,0x20,0x20,0x10,0x0F,0x00},/*"D",36*/
	{0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,0x20,0x3F,0x20,0x20,0x23,0x20,0x18,0x00},/*"E",37*/
	{0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,0x20,0x3F,0x20,0x00,0x03,0x00,0x00,0x00},/*"F",38*/
	{0xC0,0x30,0x08,0x08,0x08,0x38,0x00,0x00,0x07,0x18,0x20,0x20,0x22,0x1E,0x02,0x00},/*"G",39*/
	{0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,0x20,0x3F,0x21,0x01,0x01,0x21,0x3F,0x20},/*"H",40*/
	{0x00,0x08,0x08,0xF8,0x08,0x08,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00},/*"I",41*/
	{0x00,0x00,0x08,0x08,0xF8,0x08,0x08,0x00,0xC0,0x80,0x80,0x80,0x7F,0x00,0x00,0x00},/*"J",42*/
	{0x08,0xF8,0x88,0xC0,0x28,0x18,0x08,0x00,0x20,0x3F,0x20,0x01,0x26,0x38,0x20,0x00},/*"K",43*/
	{0x08,0xF8,0x08,0x00,0x00,0x00,0x00,0x00,0x20,0x3F,0x20,0x20,0x20,0x20,0x30,0x00},/*"L",44*/
	{0x08,0xF8,0xF8,0x00,0xF8,0xF8,0x08,0x00,0x20,0x3F,0x00,0x3F,0x00,0x3F,0x20,0x00},/*"M",45*/
	{0x08,0xF8,0x30,0xC0,0x00,0x08,0xF8,0x08,0x20,0x3F,0x20,0x00,0x07,0x18,0x3F,0x00},/*"N",46*/
	{0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,0x0F,0x10,0x20,0x20,0x20,0x10,0x0F,0x00},/*"O",47*/
	{0x08,0xF8,0x08,0x08,0x08,0x08,0xF0,0x00,0x20,0x3F,0x21,0x01,0x01,0x01,0x00,0x00},/*"P",48*/
	{0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,0x0F,0x18,0x24,0x24,0x38,0x50,0x4F,0x00},/*"Q",49*/
	{0x08,0xF8,0x88,0x88,0x88,0x88,0x70,0x00,0x20,0x3F,0x20,0x00,0x03,0x0C,0x30,0x20},/*"R",50*/
	{0x00,0x70,0x88,0x08,0x08,0x08,0x38,0x00,0x00,0x38,0x20,0x21,0x21,0x22,0x1C,0x00},/*"S",51*/
	{0x18,0x08,0x08,0xF8,0x08,0x08,0x18,0x00,0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00},/*"T",52*/
	{0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00},/*"U",53*/
	{0x08,0x78,0x88,0x00,0x00,0xC8,0x38,0x08,0x00,0x00,0x07,0x38,0x0E,0x01,0x00,0x00},/*"V",54*/
	{0xF8,0x08,0x00,0xF8,0x00,0x08,0xF8,0x00,0x03,0x3C,0x07,0x00,0x07,0x3C,0x03,0x00},/*"W",55*/
	{0x08,0x18,0x68,0x80,0x80,0x68,0x18,0x08,0x20,0x30,0x2C,0x03,0x03,0x2C,0x30,0x20},/*"X",56*/
	{0x08,0x38,0xC8,0x00,0xC8,0x38,0x08,0x00,0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00},/*"Y",57*/
	{0x10,0x08,0x08,0x08,0xC8,0x38,0x08,0x00,0x20,0x38,0x26,0x21,0x20,0x20,0x18,0x00},/*"Z",58*/
	{0x00,0x00,0x00,0xFE,0x02,0x02,0x02,0x00,0x00,0x00,0x00,0x7F,0x40,0x40,0x40,0x00},/*"[",59*/
	{0x00,0x0C,0x30,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x06,0x38,0xC0,0x00},/*"\",60*/
	{0x00,0x02,0x02,0x02,0xFE,0x00,0x00,0x00,0x00,0x40,0x40,0x40,0x7F,0x00,0x00,0x00},/*"]",61*/
	{0x00,0x00,0x04,0x02,0x02,0x02,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"^",62*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80},/*"_",63*/
	{0x00,0x02,0x02,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"`",64*/
	{0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x19,0x24,0x22,0x22,0x22,0x3F,0x20},/*"a",65*/
	{0x08,0xF8,0x00,0x80,0x80,0x00,0x00,0x00,0x00,0x3F,0x11,0x20,0x20,0x11,0x0E,0x00},/*"b",66*/
	{0x00,0x00,0x00,0x80,0x80,0x80,0x00,0x00,0x00,0x0E,0x11,0x20,0x20,0x20,0x11,0x00},/*"c",67*/
	{0x00,0x00,0x00,0x80,0x80,0x88,0xF8,0x00,0x00,0x0E,0x11,0x20,0x20,0x10,0x3F,0x20},/*"d",68*/
	{0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x1F,0x22,0x22,0x22,0x22,0x13,0x00},/*"e",69*/
	{0x00,0x80,0x80,0xF0,0x88,0x88,0x88,0x18,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00},/*"f",70*/
	{0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x6B,0x94,0x94,0x94,0x93,0x60,0x00},/*"g",71*/
	{0x08,0xF8,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20},/*"h",72*/
	{0x00,0x80,0x98,0x98,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00},/*"i",73*/
	{0x00,0x00,0x00,0x80,0x98,0x98,0x00,0x00,0x00,0xC0,0x80,0x80,0x80,0x7F,0x00,0x00},/*"j",74*/
	{0x08,0xF8,0x00,0x00,0x80,0x80,0x80,0x00,0x20,0x3F,0x24,0x02,0x2D,0x30,0x20,0x00},/*"k",75*/
	{0x00,0x08,0x08,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00},/*"l",76*/
	{0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x20,0x3F,0x20,0x00,0x3F,0x20,0x00,0x3F},/*"m",77*/
	{0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20},/*"n",78*/
	{0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00},/*"o",79*/
	{0x80,0x80,0x00,0x80,0x80,0x00,0x00,0x00,0x80,0xFF,0xA1,0x20,0x20,0x11,0x0E,0x00},/*"p",80*/
	{0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x0E,0x11,0x20,0x20,0xA0,0xFF,0x80},/*"q",81*/
	{0x80,0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x20,0x20,0x3F,0x21,0x20,0x00,0x01,0x00},/*"r",82*/
	{0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x33,0x24,0x24,0x24,0x24,0x19,0x00},/*"s",83*/
	{0x00,0x80,0x80,0xE0,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x1F,0x20,0x20,0x00,0x00},/*"t",84*/
	{0x80,0x80,0x00,0x00,0x00,0x80,0x80,0x00,0x00,0x1F,0x20,0x20,0x20,0x10,0x3F,0x20},/*"u",85*/
	{0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,0x00,0x01,0x0E,0x30,0x08,0x06,0x01,0x00},/*"v",86*/
	{0x80,0x80,0x00,0x80,0x00,0x80,0x80,0x80,0x0F,0x30,0x0C,0x03,0x0C,0x30,0x0F,0x00},/*"w",87*/
	{0x00,0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x31,0x2E,0x0E,0x31,0x20,0x00},/*"x",88*/
	{0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,0x80,0x81,0x8E,0x70,0x18,0x06,0x01,0x00},/*"y",89*/
	{0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x21,0x30,0x2C,0x22,0x21,0x30,0x00},/*"z",90*/
	{0x00,0x00,0x00,0x00,0x80,0x7C,0x02,0x02,0x00,0x00,0x00,0x00,0x00,0x3F,0x40,0x40},/*"{",91*/
	{0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00},/*"|",92*/
	{0x00,0x02,0x02,0x7C,0x80,0x00,0x00,0x00,0x00,0x40,0x40,0x3F,0x00,0x00,0x00,0x00},/*"}",93*/
	{0x00,0x06,0x01,0x01,0x02,0x02,0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"~",94*/
};  

//24*12 ASICII
const unsigned char asc2_2412[95][36] =
{	  
	{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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*" ",0*/
	{0x00,0x00,0x00,0x00,0x00,0xF0,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x7F,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x1C,0x1C,0x00,0x00,0x00,0x00},/*"!",1*/
	{0x00,0x00,0x80,0x60,0x30,0x1C,0x8C,0x60,0x30,0x1C,0x0C,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},/*""",2*/
	{0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0x86,0xE6,0x9F,0x86,0x86,0x86,0x86,0xE6,0x9F,0x86,0x00,0x00,0x01,0x1F,0x01,0x01,0x01,0x01,0x01,0x1F,0x01,0x01,0x00},/*"#",3*/
	{0x00,0x00,0x80,0xC0,0x60,0x20,0xF8,0x20,0xE0,0xC0,0x00,0x00,0x00,0x00,0x03,0x07,0x0C,0x18,0xFF,0x70,0xE1,0x81,0x00,0x00,0x00,0x00,0x07,0x0F,0x10,0x10,0x7F,0x10,0x0F,0x07,0x00,0x00},/*"$",4*/
	{0x80,0x60,0x20,0x60,0x80,0x00,0x00,0x00,0xE0,0x20,0x00,0x00,0x0F,0x30,0x20,0x30,0x9F,0x70,0xDC,0x37,0x10,0x30,0xC0,0x00,0x00,0x00,0x10,0x0E,0x03,0x00,0x07,0x18,0x10,0x18,0x07,0x00},/*"%",5*/
	{0x00,0x00,0xC0,0x20,0x20,0xE0,0xC0,0x00,0x00,0x00,0x00,0x00,0x80,0xE0,0x1F,0x38,0xE8,0x87,0x03,0xC4,0x3C,0x04,0x00,0x00,0x07,0x0F,0x18,0x10,0x10,0x0B,0x07,0x0D,0x10,0x10,0x08,0x00},/*"&",6*/
	{0x00,0x80,0x8C,0x4C,0x38,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,0x00,0x00,0x00,0x00,0x00},/*"'",7*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xE0,0x30,0x08,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0xFF,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x0F,0x18,0x20,0x40,0x00},/*"(",8*/
	{0x00,0x04,0x08,0x30,0xE0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFF,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x20,0x18,0x0F,0x03,0x00,0x00,0x00,0x00,0x00,0x00},/*")",9*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x42,0x66,0x66,0x3C,0x18,0xFF,0x18,0x3C,0x66,0x66,0x42,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00},/*"*",10*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x10,0x10,0xFF,0x10,0x10,0x10,0x10,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00},/*"+",11*/
	{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,0x80,0x8C,0x4C,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*",",12*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"-",13*/
	{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,0x1C,0x1C,0x1C,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*".",14*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0x38,0x0C,0x00,0x00,0x00,0x00,0x00,0x80,0x70,0x1C,0x03,0x00,0x00,0x00,0x00,0x00,0x60,0x38,0x0E,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"/",15*/
	{0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0xFE,0xFF,0x01,0x00,0x00,0x00,0x00,0x01,0xFF,0xFE,0x00,0x00,0x01,0x07,0x0E,0x18,0x10,0x10,0x18,0x0E,0x07,0x01,0x00},/*"0",16*/
	{0x00,0x00,0x80,0x80,0x80,0xC0,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,0x10,0x10,0x00,0x00},/*"1",17*/
	{0x00,0x80,0x40,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0x03,0x03,0x00,0x80,0x40,0x20,0x38,0x1F,0x07,0x00,0x00,0x00,0x1C,0x1A,0x19,0x18,0x18,0x18,0x18,0x18,0x1F,0x00,0x00},/*"2",18*/
	{0x00,0x80,0xC0,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0x00,0x03,0x03,0x00,0x10,0x10,0x18,0x2F,0xE7,0x80,0x00,0x00,0x00,0x07,0x0F,0x10,0x10,0x10,0x10,0x18,0x0F,0x07,0x00,0x00},/*"3",19*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xE0,0xF0,0x00,0x00,0x00,0x00,0xC0,0xB0,0x88,0x86,0x81,0x80,0xFF,0xFF,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x1F,0x1F,0x10,0x10,0x00},/*"4",20*/
	{0x00,0x00,0xE0,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x00,0x00,0x00,0x00,0x3F,0x10,0x08,0x08,0x08,0x18,0xF0,0xE0,0x00,0x00,0x00,0x07,0x0B,0x10,0x10,0x10,0x10,0x1C,0x0F,0x03,0x00,0x00},/*"5",21*/
	{0x00,0x00,0x80,0xC0,0x40,0x20,0x20,0x20,0xE0,0xC0,0x00,0x00,0x00,0xFC,0xFF,0x21,0x10,0x08,0x08,0x08,0x18,0xF0,0xE0,0x00,0x00,0x01,0x07,0x0C,0x18,0x10,0x10,0x10,0x08,0x0F,0x03,0x00},/*"6",22*/
	{0x00,0x00,0xC0,0xE0,0x60,0x60,0x60,0x60,0x60,0xE0,0x60,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0xE0,0x18,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x1F,0x00,0x00,0x00,0x00,0x00},/*"7",23*/
	{0x00,0x80,0xC0,0x60,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x87,0xEF,0x2C,0x18,0x18,0x30,0x30,0x68,0xCF,0x83,0x00,0x00,0x07,0x0F,0x08,0x10,0x10,0x10,0x10,0x18,0x0F,0x07,0x00},/*"8",24*/
	{0x00,0x00,0xC0,0xC0,0x20,0x20,0x20,0x20,0xC0,0x80,0x00,0x00,0x00,0x1F,0x3F,0x60,0x40,0x40,0x40,0x20,0x10,0xFF,0xFE,0x00,0x00,0x00,0x0C,0x1C,0x10,0x10,0x10,0x08,0x0F,0x03,0x00,0x00},/*"9",25*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0E,0x0E,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x1C,0x1C,0x00,0x00,0x00,0x00},/*":",26*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x58,0x38,0x00,0x00,0x00,0x00,0x00},/*";",27*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x40,0x20,0x10,0x00,0x00,0x00,0x10,0x28,0x44,0x82,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x04,0x08,0x10,0x00},/*"<",28*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"=",29*/
	{0x00,0x00,0x10,0x20,0x40,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x82,0x44,0x28,0x10,0x00,0x00,0x00,0x10,0x08,0x04,0x02,0x01,0x00,0x00,0x00,0x00,0x00},/*">",30*/
	{0x00,0xC0,0x20,0x20,0x10,0x10,0x10,0x10,0x30,0xE0,0xC0,0x00,0x00,0x03,0x03,0x00,0x00,0xF0,0x10,0x08,0x0C,0x07,0x03,0x00,0x00,0x00,0x00,0x00,0x1C,0x1C,0x1C,0x00,0x00,0x00,0x00,0x00},/*"?",31*/
	{0x00,0x00,0x00,0xC0,0x40,0x60,0x20,0x20,0x20,0x40,0xC0,0x00,0x00,0xFC,0xFF,0x01,0xF0,0x0E,0x03,0xC1,0xFE,0x03,0x80,0x7F,0x00,0x01,0x07,0x0E,0x08,0x11,0x11,0x10,0x11,0x09,0x04,0x02},/*"@",32*/
	{0x00,0x00,0x00,0x00,0x80,0xE0,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x7C,0x43,0x40,0x47,0x7F,0xF8,0x80,0x00,0x00,0x10,0x18,0x1F,0x10,0x00,0x00,0x00,0x00,0x13,0x1F,0x1C,0x10},/*"A",33*/
	{0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0xFF,0xFF,0x10,0x10,0x10,0x10,0x18,0x2F,0xE7,0x80,0x00,0x10,0x1F,0x1F,0x10,0x10,0x10,0x10,0x10,0x18,0x0F,0x07,0x00},/*"B",34*/
	{0x00,0x00,0x80,0xC0,0x40,0x20,0x20,0x20,0x20,0x60,0xE0,0x00,0x00,0xFC,0xFF,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x01,0x07,0x0E,0x18,0x10,0x10,0x10,0x08,0x04,0x03,0x00},/*"C",35*/
	{0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x40,0xC0,0x80,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x01,0xFF,0xFE,0x00,0x10,0x1F,0x1F,0x10,0x10,0x10,0x18,0x08,0x0E,0x07,0x01,0x00},/*"D",36*/
	{0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x20,0x20,0x60,0x80,0x00,0x00,0xFF,0xFF,0x10,0x10,0x10,0x10,0x7C,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x10,0x10,0x10,0x10,0x10,0x18,0x06,0x00},/*"E",37*/
	{0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x20,0x60,0x60,0x80,0x00,0x00,0xFF,0xFF,0x10,0x10,0x10,0x10,0x7C,0x00,0x00,0x01,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"F",38*/
	{0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0x20,0x40,0xE0,0x00,0x00,0x00,0xFC,0xFF,0x01,0x00,0x00,0x40,0x40,0xC0,0xC1,0x40,0x40,0x00,0x01,0x07,0x0E,0x18,0x10,0x10,0x10,0x0F,0x0F,0x00,0x00},/*"G",39*/
	{0x20,0xE0,0xE0,0x20,0x00,0x00,0x00,0x00,0x20,0xE0,0xE0,0x20,0x00,0xFF,0xFF,0x10,0x10,0x10,0x10,0x10,0x10,0xFF,0xFF,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10},/*"H",40*/
	{0x00,0x00,0x20,0x20,0x20,0xE0,0xE0,0x20,0x20,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,0x10,0x10,0x00,0x00},/*"I",41*/
	{0x00,0x00,0x00,0x00,0x20,0x20,0x20,0xE0,0xE0,0x20,0x20,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x60,0xE0,0x80,0x80,0x80,0xC0,0x7F,0x3F,0x00,0x00,0x00},/*"J",42*/
	{0x20,0xE0,0xE0,0x20,0x00,0x00,0x20,0xA0,0x60,0x20,0x20,0x00,0x00,0xFF,0xFF,0x30,0x18,0x7C,0xE3,0xC0,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x01,0x13,0x1F,0x1C,0x18,0x10},/*"K",43*/
	{0x20,0xE0,0xE0,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x10,0x10,0x10,0x10,0x10,0x18,0x06,0x00},/*"L",44*/
	{0x20,0xE0,0xE0,0xE0,0x00,0x00,0x00,0x00,0xE0,0xE0,0xE0,0x20,0x00,0xFF,0x01,0x3F,0xFE,0xC0,0xE0,0x1E,0x01,0xFF,0xFF,0x00,0x10,0x1F,0x10,0x00,0x03,0x1F,0x03,0x00,0x10,0x1F,0x1F,0x10},/*"M",45*/
	{0x20,0xE0,0xE0,0xC0,0x00,0x00,0x00,0x00,0x00,0x20,0xE0,0x20,0x00,0xFF,0x00,0x03,0x07,0x1C,0x78,0xE0,0x80,0x00,0xFF,0x00,0x10,0x1F,0x10,0x00,0x00,0x00,0x00,0x00,0x03,0x0F,0x1F,0x00},/*"N",46*/
	{0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0xFE,0xFF,0x01,0x00,0x00,0x00,0x00,0x00,0xFF,0xFE,0x00,0x00,0x01,0x07,0x0E,0x18,0x10,0x10,0x18,0x0C,0x07,0x01,0x00},/*"O",47*/
	{0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0xFF,0xFF,0x20,0x20,0x20,0x20,0x20,0x30,0x1F,0x0F,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"P",48*/
	{0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0xFE,0xFF,0x01,0x00,0x00,0x00,0x00,0x00,0xFF,0xFE,0x00,0x00,0x01,0x07,0x0E,0x11,0x11,0x13,0x3C,0x7C,0x67,0x21,0x00},/*"Q",49*/
	{0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0xFF,0xFF,0x10,0x10,0x30,0xF0,0xD0,0x08,0x0F,0x07,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x00,0x03,0x0F,0x1C,0x10,0x10},/*"R",50*/
	{0x00,0x80,0xC0,0x60,0x20,0x20,0x20,0x20,0x40,0x40,0xE0,0x00,0x00,0x07,0x0F,0x0C,0x18,0x18,0x30,0x30,0x60,0xE0,0x81,0x00,0x00,0x1F,0x0C,0x08,0x10,0x10,0x10,0x10,0x18,0x0F,0x07,0x00},/*"S",51*/
	{0x80,0x60,0x20,0x20,0x20,0xE0,0xE0,0x20,0x20,0x20,0x60,0x80,0x01,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x00,0x00},/*"T",52*/
	{0x20,0xE0,0xE0,0x20,0x00,0x00,0x00,0x00,0x00,0x20,0xE0,0x20,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x07,0x0F,0x18,0x10,0x10,0x10,0x10,0x10,0x08,0x07,0x00},/*"U",53*/
	{0x20,0x60,0xE0,0xE0,0x20,0x00,0x00,0x00,0x20,0xE0,0x60,0x20,0x00,0x00,0x07,0x7F,0xF8,0x80,0x00,0x80,0x7C,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x1F,0x1C,0x07,0x00,0x00,0x00,0x00},/*"V",54*/
	{0x20,0xE0,0xE0,0x20,0x00,0xE0,0xE0,0x20,0x00,0x20,0xE0,0x20,0x00,0x07,0xFF,0xF8,0xE0,0x1F,0xFF,0xFC,0xE0,0x1F,0x00,0x00,0x00,0x00,0x03,0x1F,0x03,0x00,0x01,0x1F,0x03,0x00,0x00,0x00},/*"W",55*/
	{0x00,0x20,0x60,0xE0,0xA0,0x00,0x00,0x20,0xE0,0x60,0x20,0x00,0x00,0x00,0x00,0x03,0x8F,0x7C,0xF8,0xC6,0x01,0x00,0x00,0x00,0x00,0x10,0x18,0x1E,0x13,0x00,0x01,0x17,0x1F,0x18,0x10,0x00},/*"X",56*/
	{0x20,0x60,0xE0,0xE0,0x20,0x00,0x00,0x00,0x20,0xE0,0x60,0x20,0x00,0x00,0x01,0x07,0x3E,0xF8,0xE0,0x18,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x1F,0x1F,0x10,0x10,0x00,0x00,0x00},/*"Y",57*/
	{0x00,0x80,0x60,0x20,0x20,0x20,0x20,0xA0,0xE0,0xE0,0x20,0x00,0x00,0x00,0x00,0x00,0xC0,0xF0,0x3E,0x0F,0x03,0x00,0x00,0x00,0x00,0x10,0x1C,0x1F,0x17,0x10,0x10,0x10,0x10,0x18,0x06,0x00},/*"Z",58*/
	{0x00,0x00,0x00,0x00,0x00,0xFC,0x04,0x04,0x04,0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x40,0x40,0x40,0x40,0x40,0x00},/*"[",59*/
	{0x00,0x00,0x10,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x1C,0x60,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x0C,0x70,0x80,0x00},/*"\",60*/
	{0x00,0x00,0x04,0x04,0x04,0x04,0x04,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x40,0x40,0x40,0x40,0x7F,0x00,0x00,0x00,0x00},/*"]",61*/
	{0x00,0x00,0x00,0x10,0x08,0x0C,0x04,0x0C,0x08,0x10,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},/*"^",62*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80},/*"_",63*/
	{0x00,0x00,0x00,0x04,0x04,0x08,0x08,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,0x00,0x00,0x00},/*"`",64*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x98,0xD8,0x44,0x64,0x24,0x24,0xFC,0xF8,0x00,0x00,0x00,0x0F,0x1F,0x18,0x10,0x10,0x10,0x08,0x1F,0x1F,0x10,0x18},/*"a",65*/
	{0x00,0x20,0xE0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x18,0x08,0x04,0x04,0x0C,0xF8,0xF0,0x00,0x00,0x00,0x1F,0x0F,0x18,0x10,0x10,0x10,0x18,0x0F,0x03,0x00},/*"b",66*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF8,0x18,0x04,0x04,0x04,0x3C,0x38,0x00,0x00,0x00,0x00,0x03,0x0F,0x0C,0x10,0x10,0x10,0x10,0x08,0x06,0x00,0x00},/*"c",67*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0xE0,0xF0,0x00,0x00,0x00,0xE0,0xF8,0x1C,0x04,0x04,0x04,0x08,0xFF,0xFF,0x00,0x00,0x00,0x03,0x0F,0x18,0x10,0x10,0x10,0x08,0x1F,0x0F,0x08,0x00},/*"d",68*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF8,0x48,0x44,0x44,0x44,0x4C,0x78,0x70,0x00,0x00,0x00,0x03,0x0F,0x0C,0x18,0x10,0x10,0x10,0x08,0x04,0x00},/*"e",69*/
	{0x00,0x00,0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0xE0,0xC0,0x00,0x00,0x04,0x04,0x04,0xFF,0xFF,0x04,0x04,0x04,0x04,0x00,0x00,0x00,0x00,0x10,0x10,0x1F,0x1F,0x10,0x10,0x10,0x00,0x00,0x00},/*"f",70*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0xF8,0x8C,0x04,0x04,0x8C,0xF8,0x74,0x04,0x0C,0x00,0x70,0x76,0xCF,0x8D,0x8D,0x8D,0x89,0xC8,0x78,0x70,0x00},/*"g",71*/
	{0x00,0x20,0xE0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x08,0x04,0x04,0x04,0xFC,0xF8,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00},/*"h",72*/
	{0x00,0x00,0x00,0x00,0x00,0x60,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x04,0xFC,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,0x10,0x10,0x00,0x00},/*"i",73*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x04,0xFC,0xFC,0x00,0x00,0x00,0x00,0x00,0xC0,0xC0,0x80,0x80,0xC0,0x7F,0x3F,0x00,0x00,0x00},/*"j",74*/
	{0x00,0x20,0xE0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x80,0xC0,0xF4,0x1C,0x04,0x04,0x00,0x00,0x00,0x10,0x1F,0x1F,0x11,0x00,0x03,0x1F,0x1C,0x10,0x10,0x00},/*"k",75*/
	{0x00,0x00,0x20,0x20,0x20,0xE0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,0x10,0x10,0x00,0x00},/*"l",76*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0xFC,0xFC,0x08,0x04,0xFC,0xFC,0x08,0x04,0xFC,0xFC,0x00,0x10,0x1F,0x1F,0x10,0x00,0x1F,0x1F,0x10,0x00,0x1F,0x1F,0x10},/*"m",77*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0xFC,0xFC,0x08,0x08,0x04,0x04,0xFC,0xF8,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00},/*"n",78*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF0,0x18,0x0C,0x04,0x04,0x0C,0x18,0xF0,0xE0,0x00,0x00,0x03,0x0F,0x0C,0x10,0x10,0x10,0x10,0x0C,0x0F,0x03,0x00},/*"o",79*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0xFC,0xFC,0x08,0x04,0x04,0x04,0x0C,0xF8,0xF0,0x00,0x00,0x80,0xFF,0xFF,0x88,0x90,0x10,0x10,0x1C,0x0F,0x03,0x00},/*"p",80*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF8,0x1C,0x04,0x04,0x04,0x08,0xF8,0xFC,0x00,0x00,0x00,0x03,0x0F,0x18,0x10,0x10,0x90,0x88,0xFF,0xFF,0x80,0x00},/*"q",81*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x04,0xFC,0xFC,0x10,0x08,0x04,0x04,0x0C,0x0C,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,0x10,0x10,0x00,0x00,0x00,0x00},/*"r",82*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x78,0xCC,0xC4,0x84,0x84,0x84,0x0C,0x1C,0x00,0x00,0x00,0x1E,0x18,0x10,0x10,0x10,0x11,0x19,0x0F,0x06,0x00},/*"s",83*/
	{0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x04,0xFF,0xFF,0x04,0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x1F,0x10,0x10,0x10,0x0C,0x00,0x00},/*"t",84*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0xFC,0xFE,0x00,0x00,0x00,0x04,0xFC,0xFE,0x00,0x00,0x00,0x00,0x0F,0x1F,0x18,0x10,0x10,0x08,0x1F,0x0F,0x08,0x00},/*"u",85*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x0C,0x3C,0xFC,0xC4,0x00,0x00,0xC4,0x3C,0x0C,0x04,0x00,0x00,0x00,0x00,0x01,0x0F,0x1E,0x0E,0x01,0x00,0x00,0x00},/*"v",86*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x3C,0xFC,0xC4,0x00,0xE4,0x7C,0xFC,0x84,0x80,0x7C,0x04,0x00,0x00,0x07,0x1F,0x07,0x00,0x00,0x07,0x1F,0x07,0x00,0x00},/*"w",87*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x1C,0x7C,0xE4,0xC0,0x34,0x1C,0x04,0x04,0x00,0x00,0x10,0x10,0x1C,0x16,0x01,0x13,0x1F,0x1C,0x18,0x10,0x00},/*"x",88*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x0C,0x3C,0xFC,0xC4,0x00,0xC4,0x3C,0x04,0x04,0x00,0x00,0x00,0xC0,0x80,0xC1,0x37,0x0E,0x01,0x00,0x00,0x00,0x00},/*"y",89*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x04,0x04,0xC4,0xF4,0x7C,0x1C,0x04,0x00,0x00,0x00,0x00,0x10,0x1C,0x1F,0x17,0x11,0x10,0x10,0x18,0x0E,0x00},/*"z",90*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x0C,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x28,0xEF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x60,0x40,0x00,0x00},/*"{",91*/
	{0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00},/*"|",92*/
	{0x00,0x00,0x04,0x0C,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xEF,0x28,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x60,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"}",93*/
	{0x00,0x18,0x06,0x02,0x02,0x04,0x08,0x10,0x20,0x20,0x30,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"~",94*/
};

4.驱动.c文件

/**
  * @brief  GRAM清空
  * @param  multi
  * @retval NULL
***/
void GRAM_Clear(uint16_t color)
{
	if(gstate == STATE_BUSY)
	{
		return;
	}

	for(uint16_t j = 0; j < LCD_Height; j++)
	{
		for(uint16_t i = 0; i < LCD_Width; i++)
		{
			gram_buffer[i+(j*LCD_Width)] = color;
		}
	}
	gaction = STATE_READY;
}


/**
  * @brief  GRAM画点
  * @param  multi
  * @retval NULL
***/
void GRAM_DrawPoint(uint32_t _x, uint32_t _y, uint32_t color)
{
	if(gstate == STATE_BUSY)
	{
		return;
	}
	
	if(_x >= LCD_Width || _y >= LCD_Height)
	{
		return;
	}
	
    //我这里用的是DMA方式,可以根据自己的喜好修改
	if(Draw_Mode == MODE_NORMAL)
	{
		//gram_buffer[_x+_y*LCD_Width] = color;
	}
	else
	{
		//gram_buffer[_x+_y*LCD_Width] ^= color;
	}
	gaction = STATE_READY;
}

/**
  * @brief  GRAM打线
  * @param  multi
  * @retval NULL
***/
void GRAM_DrawLine(uint32_t _x, uint32_t _y, uint32_t _xe, uint32_t _ye, uint32_t color)
{
	//增量
	int16_t dx = (int16_t)_xe - (int16_t)_x;
	int16_t dy = (int16_t)_ye - (int16_t)_y;
	int16_t abs_dx = abs(dx);
	int16_t abs_dy = abs(dy);
	int16_t ix;
	int16_t iy;
	if(dx > 0)			ix = 1;
	else if(dx < 0)		ix = -1;
	else				ix = 0;
	if(dy > 0)			iy = 1;
	else if(dy < 0)		iy = -1;
	else				iy = 0;

	//判据
	int16_t d;
	int16_t d2;
	int16_t dd2;

	if(abs_dx >= abs_dy)
	{
		d = abs_dy * 2 - abs_dx;
		d2 = abs_dy * 2;
		dd2 = (abs_dy - abs_dx) * 2;
		GRAM_DrawPoint(_x, _y, color);
		while(_x != _xe)
		{
			if(d < 0){	d += d2;				}
			else{		d += dd2;	_y += iy;	}
			_x += ix;
			GRAM_DrawPoint( _x, _y, color);
		}
		GRAM_DrawPoint(_xe, _ye, color);
	}
	else
	{
		d = abs_dx * 2 - abs_dy;
		d2 = abs_dx * 2;
		dd2 = (abs_dx - abs_dy) * 2;
		GRAM_DrawPoint(_x, _y, color);
		while(_y != _ye)
		{
			if(d < 0){	d += d2;			}
			else{		d += dd2;	_x += ix;}
			_y += iy;
			GRAM_DrawPoint(_x, _y, color);
		}
		GRAM_DrawPoint(_xe, _ye, color);
	}
}

/**
  * @brief  GRAM画横线
  * @param  multi
  * @retval NULL
***/
void GRAM_Draw_hline_pixel(uint16_t x, uint16_t y, uint16_t len, uint16_t color)
{
	while(len != 0)
	{
		GRAM_DrawPoint(x, y, color);
		x++;
		len--;
	}
}

/**
  * @brief  GRAM画竖线
  * @param  multi
  * @retval NULL
***/
void GRAM_Draw_vline_pixel(uint16_t x, uint16_t y, uint16_t len, uint16_t color)
{
	while(len != 0)
	{
		GRAM_DrawPoint(x, y, color);
		y++;
		len--;
	}
}

/**
* @brief  GRAM画贝赛尔曲线
  * @param  multi
  * @retval NULL
***/
void GRAM_Draw_Dezier_Curve(uint32_t color, uint8_t size, ...)
{
	if(size <= 1)
		return;
	
	va_list list;
	va_start(list, size);
	bezier_curve *temp = (bezier_curve *)malloc(size * sizeof(bezier_curve));
	for(uint8_t i = 0; i < size; i++) {
		temp[i] = va_arg(list, bezier_curve);
	}
	va_end(list);
	
	bezier_curve *parent = NULL;
	bezier_curve *child = NULL;
	bezier_curve last_point = temp[0];
	
	for(double linenum = 0; linenum < 1+1.0f/100; linenum += 1.0f/100) {
		int number = size;
		parent = temp;
		
		while(number > 1) {
			child = (bezier_curve *)malloc((number - 1)*sizeof(bezier_curve));
			
			for(uint8_t i = 0; i < number - 1; i++) {
				child[i].x = parent[i].x + (parent[i+1].x - parent[i].x)*linenum;
				child[i].y = parent[i].y + (parent[i+1].y - parent[i].y)*linenum;
			}
			if(parent != temp)
				free(parent);
			parent = child;
			number--;
		}
		GRAM_DrawLine(last_point.x, last_point.y, parent->x, parent->y, color);
		
		last_point.x = parent->x;
		last_point.y = parent->y;
		free(parent);
		parent = NULL;
		child = NULL;
	}
	free(temp);
}


/**
  * @brief  GRAM打圆
  * @param  multi
  * @retval NULL
***/
void GRAM_DrawCircle(uint32_t _x, uint32_t _y, uint32_t _radius, uint32_t color)
{
	//增量
	int16_t dx;
	int16_t dy;

	//判据
	int16_t d;

	//绘图
	dx = 0;
	dy = _radius;
	d = 3 - 2 * (int16_t)_radius;

	while(dx <= dy)
	{
		GRAM_DrawPoint(_x + dy, _y + dx, color);
		GRAM_DrawPoint(_x + dx, _y + dy, color);
		GRAM_DrawPoint(_x - dx, _y + dy, color);
		GRAM_DrawPoint(_x - dy, _y + dx, color);
		GRAM_DrawPoint(_x - dy, _y - dx, color);
		GRAM_DrawPoint(_x - dx, _y - dy, color);
		GRAM_DrawPoint(_x + dx, _y - dy, color);
		GRAM_DrawPoint(_x + dy, _y - dx, color);

		if(d < 0){	d += 4 * dx + 6;					}
		else	{	d += 4 * (dx - dy) + 10;	dy --;	}
		dx ++;
	}
}

/**
  * @brief  GRAM圆的选择
  * @param  multi
  * @retval NULL
***/
static void GRAM_DrawCircle_Section(uint32_t x, uint32_t y, uint32_t x0, uint32_t y0, circle_option_e option, uint32_t color)
{
	/* upper right */
    if (option & CIRCLE_UPPER_RIGHT)
    {
        GRAM_DrawPoint(x0 + x, y0 - y, color);
        GRAM_DrawPoint(x0 + y, y0 - x, color);
    }

    /* upper left */
    if (option & CIRCLE_UPPER_LEFT)
    {
        GRAM_DrawPoint(x0 - x, y0 - y, color);
        GRAM_DrawPoint(x0 - y, y0 - x, color);
    }

    /* lower right */
    if (option & CIRCLE_LOWER_RIGHT)
    {
        GRAM_DrawPoint(x0 + x, y0 + y, color);
        GRAM_DrawPoint(x0 + y, y0 + x, color);
    }

    /* lower left */
    if (option & CIRCLE_LOWER_LEFT)
    {
        GRAM_DrawPoint(x0 - x, y0 + y, color);
        GRAM_DrawPoint(x0 - y, y0 + x, color);
    }
}

/**
  * @brief  GRAM显示圆
  * @param  multi
  * @retval NULL
***/
void GRAM_DrawCircle_Pixel(uint16_t x0, uint16_t y0, uint16_t rad, circle_option_e option, uint16_t color)
{
	int16_t f;
    int16_t ddF_x;
    int16_t ddF_y;
    uint16_t x;
    uint16_t y;
	
	f = 1;
    f -= rad;
    ddF_x = 1;
    ddF_y = 0;
    ddF_y -= rad;
    ddF_y *= 2;
    x = 0;
    y = rad;
	
	GRAM_DrawCircle_Section(x, y, x0, y0, option, color);
	while (x < y)
    {
        if (f >= 0)
        {
            y--;
            ddF_y += 2;
            f += ddF_y;
        }
        x++;
        ddF_x += 2;
        f += ddF_x;
        GRAM_DrawCircle_Section(x, y, x0, y0, option, color);
    }
}

void GRAM_DrawRectangle(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t color)
{
	uint16_t xtmp = x;
	
	GRAM_Draw_hline_pixel(x, y, w, color);
    if (h >= 2)
    {
        h -= 2;
        y++;
        if (h > 0)
        {
            GRAM_Draw_vline_pixel(x, y, h, color);
            x += w;
            x--;
            GRAM_Draw_vline_pixel(x, y, h, color);
            y += h;
        }
        GRAM_Draw_hline_pixel(xtmp, y, w, color);
    }
}

/**
  * @brief  GRAM显示长方形
  * @param  multi
  * @retval NULL
***/
void GRAM_DrawrRectangle(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t r, uint16_t color)
{
    uint16_t xl, yu;
    uint16_t yl, xr;
    uint16_t ww, hh;
	
	xl = x;
    xl += r;
    yu = y;
    yu += r;

    xr = x;
    xr += w;
    xr -= r;
    xr -= 1;

    yl = y;
    yl += h;
    yl -= r;
    yl -= 1;
	
	GRAM_DrawCircle_Pixel(xl, yu, r, CIRCLE_UPPER_LEFT, color);
    GRAM_DrawCircle_Pixel(xr, yu, r, CIRCLE_UPPER_RIGHT, color);
    GRAM_DrawCircle_Pixel(xl, yl, r, CIRCLE_LOWER_LEFT, color);
    GRAM_DrawCircle_Pixel(xr, yl, r, CIRCLE_LOWER_RIGHT, color);
	
	ww = w;
    ww -= r;
    ww -= r;
    xl++;
    yu++;
	
	if (ww >= 3)
    {
        ww -= 2;
        h--;
        GRAM_Draw_hline_pixel(xl, y, ww, color);
        GRAM_Draw_hline_pixel(xl, y+h, ww, color);
    }

    hh = h;
    hh -= r;
    hh -= r;

    if (hh >= 3)
    {
        hh -= 2;
        w--;
        GRAM_Draw_vline_pixel(x, yu, hh, color);
        GRAM_Draw_vline_pixel(x+w, yu, hh, color);
    }
}

/**
  * @brief  GRAMbox
  * @param  multi
  * @retval NULL
***/
void GRAM_Draw_Box(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t color)
{
	while (h != 0)
    {
        GRAM_Draw_hline_pixel(x, y, w, color);
        y++;
        h--;
    }
}

/**
  * @brief  GRAMbox
  * @param  multi
  * @retval NULL
***/
static void GRAM_Draw_Disk_Pixel_Section(uint16_t x, uint16_t y, uint16_t x0, uint16_t y0, circle_option_e option, uint16_t color)
{
    /* upper right */
    if (option & CIRCLE_UPPER_RIGHT)
    {
        GRAM_Draw_vline_pixel(x0 + x, y0 - y, y + 1, color);
        GRAM_Draw_vline_pixel(x0 + y, y0 - x, x + 1, color);
    }

    /* upper left */
    if (option & CIRCLE_UPPER_LEFT)
    {
        GRAM_Draw_vline_pixel(x0 - x, y0 - y, y + 1, color);
        GRAM_Draw_vline_pixel(x0 - y, y0 - x, x + 1, color);
    }

    /* lower right */
    if (option & CIRCLE_LOWER_RIGHT)
    {
        GRAM_Draw_vline_pixel(x0 + x, y0, y + 1, color);
        GRAM_Draw_vline_pixel(x0 + y, y0, x + 1, color);
    }

    /* lower left */
    if (option & CIRCLE_LOWER_LEFT)
    {
        GRAM_Draw_vline_pixel(x0 - x, y0, y + 1, color);
        GRAM_Draw_vline_pixel(x0 - y, y0, x + 1, color);
    }
}

/**
  * @brief  GRAMbox
  * @param  multi
  * @retval NULL
***/
static void GRAM_Draw_Disk_Pixel(uint16_t x0, uint16_t y0, uint16_t rad, circle_option_e option, uint16_t color)
{
    int16_t f;
    int16_t ddF_x;
    int16_t ddF_y;
    uint16_t x;
    uint16_t y;
		
	f = 1;
    f -= rad;
    ddF_x = 1;
    ddF_y = 0;
    ddF_y -= rad;
    ddF_y *= 2;
    x = 0;
    y = rad;
	
	GRAM_Draw_Disk_Pixel_Section(x, y, x0, y0, option, color);
    while (x < y)
    {
        if (f >= 0)
        {
            y--;
            ddF_y += 2;
            f += ddF_y;
        }
        x++;
        ddF_x += 2;
        f += ddF_x;
        GRAM_Draw_Disk_Pixel_Section(x, y, x0, y0, option, color);
    }
}

/**
  * @brief  GRAMbox
  * @param  multi
  * @retval NULL
***/
void GRAM_Draw_rBox(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t r, uint16_t color)
{
    uint16_t xl, yu;
    uint16_t yl, xr;
    uint16_t ww, hh;
	
	xl = x;
    xl += r;
    yu = y;
    yu += r;

    xr = x;
    xr += w;
    xr -= r;
    xr -= 1;

    yl = y;
    yl += h;
    yl -= r;
    yl -= 1;
	
	GRAM_Draw_Disk_Pixel(xl, yu, r, CIRCLE_UPPER_LEFT, color);
    GRAM_Draw_Disk_Pixel(xr, yu, r, CIRCLE_UPPER_RIGHT, color);
    GRAM_Draw_Disk_Pixel(xl, yl, r, CIRCLE_LOWER_LEFT, color);
    GRAM_Draw_Disk_Pixel(xr, yl, r, CIRCLE_LOWER_RIGHT, color);
	
	ww = w;
    ww -= r;
    ww -= r;
    xl++;
    yu++;

    if (ww >= 3)
    {
        ww -= 2;
        GRAM_Draw_Box(xl, y, ww, r + 1, color);
        GRAM_Draw_Box(xl, yl, ww, r + 1, color);
    }
	
	hh = h;
    hh -= r;
    hh -= r;
    // hh--;
    if (hh >= 3)
    {
        hh -= 2;
        GRAM_Draw_Box(x, yu, w, hh, color);
    }
}


/**
  * @brief  GRAM显示图片
  * @param  multi
  * @retval NULL
***/
void GRAM_ShowPicture(uint32_t _x, uint32_t _y, uint32_t _xs, uint32_t _ys, uint8_t* pic, uint32_t color)
{
	//行程
	uint8_t jou_x;		//X轴行程
	uint8_t jou_y;		//Y轴行程
	//过程变量
	uint8_t step_y;		//Y轴步进
	uint8_t data;		//刷写数据
	uint16_t count = 0;	//刷些计数
	
	//提取XY轴行程
	jou_x = _xs;
	jou_y = _ys;

	//刷写Y轴
	for(;jou_y;) {
		//提取Y行程
		if(jou_y > 8)		step_y = 8;
		else				step_y = jou_y;
		//刷写X轴
		for(uint8_t x=0; x<jou_x; x++){
			data = pic[count];
			for(uint8_t y=0; y<step_y; y++){
				if(data & (0x01<<y))	GRAM_DrawPoint((_x+x), (_y+y), color);
				//else					GRAM_DrawPoint((_x+x), (_y+y), color);
			}
			count++;
		}
		//Y行程处理
		_y += step_y;
		jou_y -= step_y;
	}
}

/**
  * @brief  GRAM显示字符
  * @param  multi
  * @retval NULL
***/
void GRAM_ShowChar(uint32_t _x, uint32_t _y, uint8_t _char, CharFont _format, uint32_t color)
{
	//行程
	uint8_t jou_x;		//X轴行程
	uint8_t jou_y;		//Y轴行程
	//过程变量
	uint8_t step_y;		//Y轴步进
	uint8_t data;		//刷写数据
	uint16_t count = 0;	//刷些计数

	//提取XY轴行程
	switch(_format){
		case CharFont_0806:	jou_x =  6;	jou_y =  8;	break;
		case CharFont_1206:	jou_x =  6;	jou_y = 12;	break;
		case CharFont_1608:	jou_x =  8;	jou_y = 16;	break;
		case CharFont_2412:	jou_x = 12;	jou_y = 24;	break;
	}

	//刷写Y轴
	for(;jou_y;){
		//提取Y行程
		if(jou_y > 8)		step_y = 8;
		else				step_y = jou_y;
		//刷写X轴
		for(uint8_t x=0; x<jou_x; x++){
			switch(_format){
				case CharFont_0806:	data = asc2_0806[_char - ' '][count];	break;
				case CharFont_1206:	data = asc2_1206[_char - ' '][count];	break;
				case CharFont_1608:	data = asc2_1608[_char - ' '][count];	break;
				case CharFont_2412:	data = asc2_2412[_char - ' '][count];	break;
			}
			for(uint8_t y=0; y<step_y; y++){
				if(data & (0x01<<y))	GRAM_DrawPoint((_x+x), (_y+y), color);
				//else					GRAM_DrawPoint((_x+x), (_y+y), color);
			}
			count++;
		}
		//Y行程处理
		_y += step_y;
		jou_y -= step_y;
	}
}

/**
  * @brief  GRAM显示字符串
  * @param  multi
  * @retval NULL
***/
void GRAM_ShowString(uint32_t _x, uint32_t _y, uint8_t *_char, CharFont _format, uint32_t color)
{
	while((*_char >= ' ') && (*_char <= '~'))
	{
		GRAM_ShowChar(_x, _y, *_char, _format, color);
		switch(_format){
			case CharFont_0806:	_x +=  6;	break;
			case CharFont_1206:	_x +=  6;	break;
			case CharFont_1608:	_x +=  8;	break;
			case CharFont_2412:	_x += 12;	break;
		}
		_char++;
	}
}

/**
  * @brief  GRAM显示LU型数字
  * @param  multi
  * @retval NULL
***/
void GRAM_ShowNum_LU_Max10(uint32_t _x, uint32_t _y, uint32_t _num, uint32_t _width, CharFont _format, uint32_t color)
{
	#define Max_Digit		10	//10bit数值
	uint8_t buff[Max_Digit + 1];	
	int8_t  result;
	
	//限制显示宽度
	if(_width > Max_Digit)	_width = Max_Digit;
	
	//应对尚未解决的"Sprintf格式化指定宽度的零值时出现字符串全部为空格"的问题采用的强制措施
	if(_num == 0){
		for(uint8_t i=0; i<(Max_Digit-1); i++)
			buff[i] = ' ';					//载入空格
		buff[Max_Digit-1] = '0';	//载入'0'字符
		buff[Max_Digit] = 0x00;		//载入空(结束)
		GRAM_ShowString(_x, _y, (buff + Max_Digit - _width), _format, color);
		return;
	}
	
	//格式化数字
	result = sprintf((char*)buff, "%10.lu", (unsigned long)_num);
	if((result > 0) && (result <= (Max_Digit + 1)))
		GRAM_ShowString(_x, _y, (buff + Max_Digit - _width), _format, color);
	#undef Max_Digit
}

/**
  * @brief  GRAM显示LI型数字
  * @param  multi
  * @retval NULL
***/
void GRAM_ShowNum_LI_Max11(uint32_t _x, uint32_t _y, int32_t _num, uint32_t _width, CharFont _format, uint32_t color)
{
	#define Max_Digit 	11	//1bit符号 + 10bit数值
	uint8_t buff[Max_Digit + 1];
	int8_t	result;
	
	//限制显示宽度
	if(_width > Max_Digit)	_width = Max_Digit;
	
	//应对尚未解决的"Sprintf格式化指定宽度的零值时出现字符串全部为空格"的问题采用的强制措施
	if(_num == 0){
		for(uint8_t i=0; i<(Max_Digit-1); i++)
			buff[i] = ' ';					//载入空格
		buff[Max_Digit-1] = '0';	//载入'0'字符
		buff[Max_Digit] = 0x00;		//载入空(结束)
		GRAM_ShowString(_x, _y, (buff + Max_Digit - _width), _format, color);
		return;
	}
	
	//格式化数字
	result = sprintf((char*)buff, "%11.li", (long)_num);
	if((result > 0) && (result <= (Max_Digit + 1)))
		GRAM_ShowString(_x, _y, (buff + Max_Digit - _width), _format, color);
	#undef Max_Digit
}

/**
  * @brief  GRAM显示Float型数字
  * @param  multi
  * @retval NULL
***/
void GRAM_ShowNum_Float_Max15(uint32_t _x, uint32_t _y, float _num, uint32_t _width, CharFont _format, uint32_t color)
{
	#define Max_Digit 	15	//1bit符号 + 10bit整数 + 1bit小数点 + 3bit小数
	uint8_t buff[Max_Digit + 1];
	int8_t	result;
	
	//格式化数字
	result = sprintf((char*)buff, "%15.3f", _num);
	if((result > 0) && (result <= (Max_Digit + 1)))
		GRAM_ShowString(_x, _y, (buff + Max_Digit - _width), _format, color);
	#undef Max_Digit
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值