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

📄 display.c.bak

📁 完成数据的采集
💻 BAK
📖 第 1 页 / 共 4 页
字号:

#include "includes.h"
#include"ytep.h"
#include"ytepfunction.h"
#define  yt_display_file

//-----------------------------------
// dispaly data (256x32)
//-----------------------------------
static  const   Int16U 	TAB_FAU_C[6]={'温','度','故','障','报','警'};
const	Int16U	TAB_OVER_C[6]={'超','过','预','警','温','度'};
const	Int16U	TAB_Fast_C[6]={'温','升','过','快','预','警'};
const	Int16U	TAB_Low_C[6]={'电','池','电','压','过','低'};
const	Int16U	TAB_Room_C[7]={'与','室','温','相','差','过','大'};
const Int16U	LCM_EMPTY[]={0x2020,0x2020,0x2020,0x2020,0x2020,0x2020,0x2020,0x2020,0x2020,0x2020};
const	Int16U	LCM_TYPE_TAB[]={'电','缆',('1'*0x100+32),'电','缆',('2'*0x100+32),'电','缆',('3'*0x100+32),'电','缆',('4'*0x100+32),
															'触','头',('1'*0x100+32),'触','头',('2'*0x100+32),
															'闸','阀',('1'*0x100+32),'闸','阀',('2'*0x100+32),'闸','阀',('3'*0x100+32),'闸','阀',('4'*0x100+32),
															'电','机',('1'*0x100+32),'电','机',('2'*0x100+32),'电','机',('3'*0x100+32),'电','机',('4'*0x100+32),
															'手','车',('1'*0x100+32),'手','车',('2'*0x100+32),
															'母','排',('1'*0x100+32),'母','排',('2'*0x100+32),
															'接','头',('1'*0x100+32),'接','头',('2'*0x100+32),'接','头',('3'*0x100+32),'接','头',('4'*0x100+32)};
const Int16U	TAB_OVER[4]={'预','防','报','警'};
const Int16U	SET_OVER1[]={'预','警','超','温','值',0x2020,'度'};
const Int16U	SET_OVER2[10]={'温','升',0x2020,'度','每',0x2020,'分','钟'};
const Int16U	SET_OVER3[]={'与','室','温','相','差', 0x2020,'度'};
const Int16U	TAB_FAU[]={'报','警','事','件','查','询'}; 
const Int16U	SET_FAU1[]={'事','件','超','温','值',0x2020,'度'};
const Int16U	SET_X[]={'横','座','标','范','围',0x2020,'小','时'};
const Int16U	SET_Y[]={'纵','座','标','范','围',(':'*0X100+32),0x2020,'度'};	
const Int16U  SET_MESS[]={'通','讯','方','式',(':'*0X100+32),'通','讯','速','率',(':'*0X100+32),
													'通','讯','地','址',(':'*0X100+32),('R'*0X100+'S'),('4'*0X100+'8'),('5'*0X100+32),
													('C'*0X100+'A'),('N'*0X100+'2'),('.'*0X100+'0')};
const	Int8U	ASCII_TAB[]={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','-',};
const	Int16U  TAB_FAU_D[]={('1'*0x100+'A'),('1'*0x100+'B'),('1'*0x100+'C'),('2'*0x100+'A'),('2'*0x100+'B'),
														('2'*0x100+'C'),('3'*0x100+'A'),('3'*0x100+'B'),('3'*0x100+'C'),('4'*0x100+'A'),
														('4'*0x100+'B'),('4'*0x100+'C'),('5'*0x100+'A'),('5'*0x100+'B'),('5'*0x100+'C')};
const	Int16U	LCM_D0[]={'测','温','类','型',('1'*0X100)+58};
const	Int16U	LCM_D1[]={'测','温','类','型',('2'*0X100)+58};
const	Int16U	LCM_D2[]={'测','温','类','型',('3'*0X100)+58};
const	Int16U	LCM_D3[]={'测','温','类','型',('4'*0X100)+58};
const	Int16U	TEM_TAB[]={'环','境','温','度',(':'*0X100+32)} ;
const	Int16U	RH_TAB[]={'时','间','与','温','度',0x2020,0x2020,0x2020,'环','境','温','度',(':'*0X100+32)};
const Int16U	WEEKCHAR[]={'日','一','二','三','四','五','六','日'};
const	Int16U	NOFAULT_TAB[]={'无','报','警','事','件'};
const	Int16U	NOTHISTORY_TAB[]={'无','报','警','历','史','记','录'};
const	Int16U	ALAHISTORY_TAB[]={'位','置',0x2020,'警','讯',0x2020,'时','间'};
const	Int8U		DISP_ABCD[]={'1','1','2','3','4','5','6','7','8'};
const	Int8U 	LINE_DIV_TAB[]={3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};
const	Int8U		YTAB[]={15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100};
const	Int16U	TIME_TAB[]={'2'*0X100+'0',0X2020,'年',0X2020,'月',0X2020,'日'};
const	Int8U ORDER_TABX[]={
0,0,0,0,0,0,0,0,0,0,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7
};
static const	Int16U	ORDER_TABXBIT[]={
0x200,0x100,0x80,0x40,0x20,0x10,0x8,0x4,0x2,0x1,
0x8000,0x4000,0x2000,0x1000,0x800,0x400,0x200,0x100,0x80,0x40,0x20,0x10,0x8,0x4,0x2,0x1,
0x8000,0x4000,0x2000,0x1000,0x800,0x400,0x200,0x100,0x80,0x40,0x20,0x10,0x8,0x4,0x2,0x1,
0x8000,0x4000,0x2000,0x1000,0x800,0x400,0x200,0x100,0x80,0x40,0x20,0x10,0x8,0x4,0x2,0x1,
0x8000,0x4000,0x2000,0x1000,0x800,0x400,0x200,0x100,0x80,0x40,0x20,0x10,0x8,0x4,0x2,0x1,
0x8000,0x4000,0x2000,0x1000,0x800,0x400,0x200,0x100,0x80,0x40,0x20,0x10,0x8,0x4,0x2,0x1,
0x8000,0x4000,0x2000,0x1000,0x800,0x400,0x200,0x100,0x80,0x40,0x20,0x10,0x8,0x4,0x2,0x1,
0x8000,0x4000,0x2000,0x1000,0x800,0x400,0x200,0x100,0x80,0x40,0x20,0x10,0x8,0x4,0x2,0x1
};
const	Int16U	TAB_1[]={0x181C,0x183c,0x181c,0x381c,0x383c,0x381c,0x381c,0x383c,0x381c, 0x81c,0x83c,0x81c,0x1c1c,0x1c3c,0x1c1c};

const	Int16U	TAB_2[]={0x383E,0x3836,0x3832,0x443e,0x4436,0x4432,0x443e,0x4436,0x4432, 0x183e,0x1836,0x1832,0x203e,0x2036,0x2012};

const	Int16U	TAB_3[]={0x1863,0x1833,0x1860,0x0463,0x0433,0x0460,0x0663,0x0633,0x0660, 0x2863,0x2833,0x2860,0x2063,0x2033,0x2060};

const	Int16U	TAB_4[]={0x1863,0x1836,0x1860,0x0863,0x0836,0x0860,0x0c63,0x0c36,0x0c60, 0x4863,0x4836,0x4860,0x3863,0x3836,0x3860};

const	Int16U	TAB_5[]={0x187F,0x183c,0x1860,0x107f,0x103c,0x1060,0x087f,0x083c,0x0860, 0x887f,0x883c,0x8860,0x047f,0x043c,0x0460,};

const	Int16U	TAB_6[]={0x1863,0x1837,0x1860,0x2063,0x2037,0x2060,0x0463,0x0437,0x0460, 0xfc63,0xfc37,0xfc60, 0x0263,0x0237,0x0260};

const	Int16U	TAB_7[]={0x1863,0x1833,0x1832,0x4063,0x4033,0x4032,0x6663,0x6633,0x6632,0x0863,0x0833,0x0832,0x0463,0x0433,0x0432};

const	Int16U	TAB_8[]={0x3C63,0x3c3e,0x3c1C,0x7c63,0x7c3e,0x7c1C,0x3C63,0x3C3e,0x3C1c,0x0863,0x083e,0x081c,0x3863,0x383e,0x381c};

const Int16U	TAB_DIV1[]={0x08F8,0x1C70,0x1CF8,0X1C70,0x1CF8,0x0470,0x04F8,0x3E70,0x3EF8,0x1C70,0x1CF8,0x3E70,0x3EF8,0x1C70,0x1CF8,0x1C70,0x1CF8,0x4630};
const Int16U	TAB_DIV2[]={0x1880,0x2288,0x2280,0X2288,0x2280,0x0C88,0x0C80,0x2088,0x2080,0x2488,0x2480,0x2488,0x2480,0x2288,0x2280,0x2288,0X2280,0xC948};
const Int16U	TAB_DIV3[]={0x0880,0x2288,0x2280,0X0288,0x0280,0x1488,0x1480,0x2088,0x2080,0x2088,0x2080,0x0488,0x0480,0x2288,0x2280,0x2288,0X2280,0x4948};
const Int16U	TAB_DIV4[]={0x08F0,0x0488,0x04F0,0X0C88,0x0CF0,0x1488,0x14F0,0x3C88,0x3CF0,0x3C88,0x3CF0,0x0888,0x08F0,0x1C88,0x1CF0,0x2288,0X22F0,0x4948};
const Int16U	TAB_DIV5[]={0x0808,0x0888,0x0808,0X0288,0x0208,0x2488,0x2408,0x0288,0x0208,0x2288,0x2208,0x0888,0x0808,0x2288,0x2208,0x1E88,0X1E08,0x4948};
const Int16U	TAB_DIV6[]={0x0808,0x1088,0x1008,0X0288,0x0208,0x3E88,0x3E08,0x0288,0x0208,0x2288,0x2208,0x0888,0x0808,0x2288,0x2208,0x0288,0X0208,0x4948};
const Int16U    TAB_DIV7[]={0x0888,0x2088,0x2088,0X2288,0x2288,0x0488,0x0488,0x2288,0x2288,0x2288,0x2288,0x0888,0x0888,0x2288,0x2288,0x0288,0X0288,0xE630};
const Int16U    TAB_DIV8[]={0x1C70,0x3E70,0x3E70,0X1C70,0x1C70,0x0E70,0x0E70,0x1C70,0x1C70,0x1C70,0x1C70,0x0870,0x0870,0x1C70,0x1C70,0x1C70,0X1C70,0x0};//,0xC948,0x4948,0x4948,0x4948,0x4948,0xE630,
const	Int16U		TAB_CHANNAL[]={'测','温','通','道',('1'*0x100+':'),'测','温','通','道',('2'*0x100+':'),'测','温','通','道',('3'*0x100+':'),'测','温','通','道',('4'*0x100+':')};
const	Int16U		SET_BELL[]={'报','警','提','示','音',':'*0X100+32};
const	Int16U		TAB_CHANNAL_NODE[]={'1'*0X100+'A',0X2020,0X2020,'1'*0X100+'B',0X2020,0X2020,'1'*0X100+'C',0X2020,'2'*0X100+'A',0X2020,0X2020,'2'*0X100+'B',0X2020,0X2020,'2'*0X100+'C',0X2020,
																		'3'*0X100+'A',0X2020,0X2020,'3'*0X100+'B',0X2020,0X2020,'3'*0X100+'C',0X2020,'4'*0X100+'A',0X2020,0X2020,'4'*0X100+'B',0X2020,0X2020,'4'*0X100+'C',0X2020, 
																		'5'*0X100+'A',0X2020,0X2020,'5'*0X100+'B',0X2020,0X2020,'5'*0X100+'C',0X2020};
u16 Init_TAB[]={
	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0FE0,0x7F3F,0x1FFF,0xE03F,0xE001,0xFE00,0x0000,0x0000,
0x07F0,0xFE3F,0x1FFF,0xE0FF,0xF801,0xFE00,0x0000,0x0000,
0x03F9,0xFC3F,0x1FFF,0xE1FF,0xFC01,0xFE00,0x0000,0x0000,
0x03F9,0xFC3F,0x1FFF,0xE3FF,0xFE03,0xFF00,0x0000,0x0000,
0x01FF,0xF83F,0x00FC,0x03F8,0xFE03,0xFF00,0x0000,0x0000,
0x00FF,0xF03F,0x00FC,0x07F0,0x7F07,0xFF80,0x0000,0x0000,
0x007F,0xE03F,0x00FC,0x07E0,0x3F07,0xFF80,0x0000,0x0000,
0x007F,0xE03F,0x00FC,0x07E0,0x3F07,0xCF80,0x0000,0x0000,
0x003F,0xC03F,0x00FC,0x07E0,0x3F0F,0xCFC0,0x0000,0x0000,
0x001F,0x803F,0x00FC,0x07E0,0x3F0F,0xCFC0,0x0000,0x0000,
0x001F,0x803F,0x00FC,0x07E0,0x3F0F,0xFFC0,0x0000,0x0000,
0x001F,0x803F,0x00FC,0x07F0,0x7F1F,0xFFE0,0x0000,0x0000,
0x001F,0x803F,0x00FC,0x03F8,0xFE1F,0xFFE0,0x0000,0x0000,
0x001F,0x803F,0x00FC,0x03FF,0xFE3F,0xFFF0,0x0000,0x0000,
0x001F,0x803F,0x00FC,0x01FF,0xFC3F,0x03F0,0x0000,0x0000,
0x001F,0x803F,0x00FC,0x00FF,0xF83F,0x03F0,0x0000,0x0000,
0x001F,0x803F,0x00FC,0x003F,0xE07E,0x01F8,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x000C,0x0036,0x30CC,0x00C0,0x6303,0x1800,
0x0000,0x0000,0x0007,0xFE37,0xB7FF,0x9FFD,0xFB03,0xD800,
0x0000,0x0000,0x0001,0xFE37,0xB0CC,0x1FF8,0x67E3,0xDE00,
0x0000,0x0000,0x001E,0xCCFF,0xB030,0x18D8,0xF666,0xFF00,
0x0000,0x0000,0x000F,0xB637,0xB1FE,0x1FFC,0xFFCF,0x9800,
0x0000,0x0000,0x000C,0x3037,0xB1B6,0x18D9,0xFB06,0x1800,
0x0000,0x0000,0x000F,0xFE37,0xB1B6,0x1FF8,0x3307,0xFF00,
0x0000,0x0000,0x000C,0xF83F,0xB7FF,0x98C0,0x3F86,0x1800,
0x0000,0x0000,0x001D,0xBCE7,0xB078,0x1FF9,0xF786,0x1800,
0x0000,0x0000,0x000F,0x360D,0xB0CC,0x3618,0x3CC6,0x1800,
0x0000,0x0000,0x000C,0x3038,0x3787,0xB7F8,0x3866,0x1800,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000};
u16 ORDER_TAB[512]={//y-上8下5左5右15 8H-10个字
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0003,0x3800,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0003,0x4000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x4000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x4000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x4000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x3800,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0E00,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x1500,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0C00,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0C00,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0C00,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0C00,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0192,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0252,
0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0002,0x0252,
0x0400,0x4004,0x0020,0x0200,0x1001,0x0008,0x0041,0x019E,
0x07FF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0x8252,
0x3000,0x4004,0x0020,0x0200,0x1001,0x0008,0x0041,0x0252,
0x4800,0x0000,0x0000,0x0000,0x0000,0x0000,0x0002,0x0192,
0x4800,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x4800,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x3000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,};

//-----------------------------------
// Delay Routine
//-----------------------------------
inline LcdDataOut(Int16U data)
{

#if 1	
	GPIO_WriteBit(GPIOB,GPIO_Pin_12,(BitAction)(data&1));
	GPIO_WriteBit(GPIOB,GPIO_Pin_13,(BitAction)(data&2));
	GPIO_WriteBit(GPIOB,GPIO_Pin_14,(BitAction)(data&4));
	GPIO_WriteBit(GPIOB,GPIO_Pin_15,(BitAction)(data&8));
	GPIO_WriteBit(GPIOC,GPIO_Pin_6,(BitAction)(data&0x10));
	GPIO_WriteBit(GPIOC,GPIO_Pin_7,(BitAction)(data&0x20));
	GPIO_WriteBit(GPIOC,GPIO_Pin_8,(BitAction)(data&0x40));
	GPIO_WriteBit(GPIOC,GPIO_Pin_9,(BitAction)(data&0x80));	
#endif
}
//-----------------------------------
// IO Routine
//-----------------------------------
void LCMCmd(Int8U Command)   //send command
{   
    LcdDataOut(Command);//LCDBUS = Command;
    Clr_bit(RW,B_RW); 
    Clr_bit(E,B_E);//E = 0;
    Clr_bit(CS,B_CS);//CS = 0;
   
    delay(18);
    Set_bit(E,B_E);//E =1;
    delay_nop(9);
    Clr_bit(E,B_E);//E =0;
    delay_nop(5); //delay_nop(100);
}

void LCMData(Int8U DData)    //send display data
{   
  LcdDataOut(DData);
    Clr_bit(RW,B_RW);
    Clr_bit(E,B_E);//E = 0;
    Set_bit(CS,B_CS);//CS = 1;
   
    delay(15);
    Set_bit(E,B_E);//E =1;
    delay(5);
    Clr_bit(E,B_E);//E =0; 
    delay(5);
}

void WriteChar(Int8U addr,Int8U length,const Int16U *z)
{
		LCMCmd(0x30);        // 8bit I/F, basic command, graphic off
   	LCMCmd(addr);        // fiCSt line  
//   	if(length>0&&length<9)
   	for(;length>0;length--)	
   	{ 
   		LCMData(*z>>8);
   		LCMData(*z&0xff); // send low-byte
   		z++;
    }  
}
void WriteOneChar(Int8U addr,Int16U z,Int8U y)
{	
   	LCMCmd(0x30);        // 8bit I/F, basic command, graphic off
   	LCMCmd(addr);        // fiCSt line  	 
    if(y!=0)
    	{
    		y=z&0XF;
    		z>>=4;
    		z&=0xf;
    		LCMData(ASCII_TAB[z]);
    		LCMData(ASCII_TAB[y]);
    	}else
    	{
   			LCMData(z/256);
   			LCMData(z&0xff); // send low-byte 
   		}   		     
}
///////////////////////////////////////
void	WriteASCIIChar(Int8U a,Int8U b,Int8U b1,Int8U c)
{
		LCMCmd(0x30);        
   	LCMCmd(a);  
   	LCMData(b);
   	LCMData(b1);
}
///////////////////////////////////////
//-----------------------------------
// Init LCD module
//-----------------------------------
void initLCDM(void)
{
	Int8U i,j,TempData;
  GPIOB->ODR&=0Xdf;
  Clr_bit(E,B_E);//E       = 0;
  Clr_bit(RW,B_RW);
  Clr_bit(CS,B_CS);//CS      = 0;     
  LcdDataOut(0xff);//LCDBUS  = 0xff; // pull up
	delay_nop(100);
	
	LCMCmd(0x30);    // 8bit I/F, basic command, graphic off
	LCMCmd(0x06);    // cuCSor right shift	
  LCMCmd(0x1);
  LCMCmd(0x80);    // display on
  LCMCmd(0x1);
  delay_nop(100);
  LCMCmd(0x30);
  LCMCmd(0xc0);  
  WritePicture(&Init_TAB[0]);
  delay_nop(1000);
  

    
#if	0  
   for(i=0;i<0x20;i++)
        {
    	LCMCmd(0x34);        // 8bit I/F, extend command
    	LCMCmd(0x80|i);      // Y address
    	LCMCmd(0x80);        // X address
    	LCMCmd(0x36);        // 8bit I/F, basic command, graphic on
      	for(j=0;j<0x10;j++)
     		{
     		TempData=0xf3; // send high-byte
     		LCMData(TempData);
     		TempData=0x82; // send low-byte
     		LCMData(TempData);     		
 		    }
        }
	delay_nop(100);
#endif

}



void Display_mode_setion(_LCD *D,_yt*Ddata)
{
	 Int8U  m;
	if(++D->Timer>=D->Comp)D->Timer=0,D->Mode++,LCMCmd(0x1);
	if(D->Mode>C_LCM_Mode0_1)//)
		{			
			if((Ddata->_AlamcOverTem|Ddata->_AlamcFastTem|Ddata->_AlamcRoomTem|Ddata->_AlamcLowVol|Ddata->_AlamcFaultTem)!=0)D->Mode=C_LCM_ALAMC;
			else                 D->Mode=C_LCM_TEMRH;
		}
/////////////////////////////////////////////////////	
				 m=D->Mode;			 
				 if(D->Mode==C_LCM_Mode0)
					{
						if((Ddata->_Channal&0X70)==0x70)D->Mode=C_LCM_Mode1;//if(Data->_Channal&1)LCM->Mode=C_LCM_Mode1; 
					}
				 if(D->Mode==C_LCM_Mode1)
			  	{
			  		if((Ddata->_Channal&0X380)==0x380)D->Mode=C_LCM_Mode2;//if(Data->_Channal&2)LCM->Mode=C_LCM_Mode2; 
			  	}						
			    if(D->Mode==C_LCM_Mode2)
			  	{
			  		if((Ddata->_Channal&0X1c00)==0x1c00)D->Mode=C_LCM_Mode3;//if(Data->_Channal&4)LCM->Mode=C_LCM_Mode3; 
			  	}
			    if(D->Mode==C_LCM_Mode3)
			  	{
			  		if((Ddata->_Channal&0Xe000)==0xe000)D->Mode=C_LCM_Mode0_1;//if(Data->_Channal&8)LCM->Mode=C_LCM_Mode4; 
			  	}
                             if(D->Mode==C_LCM_Mode0_1) 
                             {
                                   if((Ddata->_Channal&0X0e)==0xe000)D->Mode=C_LCM_ALAMC;
                             }
			  	if(D->Mode==C_LCM_Mode6||D->Mode==C_LCM_Mode5||D->Mode==C_LCM_Mode4)
					{
						if((Ddata->_Channal&0X70)==0x70)D->Mode=C_LCM_Mode7;//if(Data->_Channal&1)LCM->Mode=C_LCM_Mode7; 
					}	
			  	if(D->Mode==C_LCM_Mode9||D->Mode==C_LCM_Mode8||D->Mode==C_LCM_Mode7)
					{
						if((Ddata->_Channal&0X380)==0x380)D->Mode=C_LCM_Mode10;//if(Data->_Channal&2)LCM->Mode=C_LCM_Mode10; 
					}
			  	if(D->Mode==C_LCM_Mode12||D->Mode==C_LCM_Mode11||D->Mode==C_LCM_Mode10)

⌨️ 快捷键说明

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