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

📄 lcd.h~

📁 这是电池检测仪的程序
💻 H~
📖 第 1 页 / 共 5 页
字号:
 			draw(56,140,200,188,LCDFW1COLOR);     //控制框 
 			draw(56,196,200,244,LCDFW1COLOR);     //控制框 
 			draw(56,252,232,300,LCDFW1COLOR);     //控制框
 			draw(56,308,232,356,LCDFW1COLOR);     //控制框
 			break;
 	}
 }  
write_word(224,148,16,32,LCDBCOLOR,LCDFTCOLOR,number(dtdy/10));
write_word(240,148,16,32,LCDBCOLOR,LCDFTCOLOR,number(dtdy%10));
 
write_word(224,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(dcjs/100));
write_word(240,204,16,32,LCDBCOLOR,LCDFTCOLOR,number((dcjs%100)/10));
write_word(256,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(dcjs%10));
 
write_word(256,260,16,32,LCDBCOLOR,LCDFTCOLOR,number(dtgy/1000));
write_word(272,260,16,24,LCDBCOLOR,LCDFTCOLOR,o5);
write_word(288,260,16,32,LCDBCOLOR,LCDFTCOLOR,number((dtgy%1000)/100));
write_word(304,260,16,32,LCDBCOLOR,LCDFTCOLOR,number((dtgy%100)/10)); 
write_word(320,260,16,32,LCDBCOLOR,LCDFTCOLOR,number(dtgy%10)); 

write_word(256,316,16,32,LCDBCOLOR,LCDFTCOLOR,number(dtqy/1000));
write_word(272,316,16,24,LCDBCOLOR,LCDFTCOLOR,o5);
write_word(288,316,16,32,LCDBCOLOR,LCDFTCOLOR,number((dtqy%1000)/100));
write_word(304,316,16,32,LCDBCOLOR,LCDFTCOLOR,number((dtqy%100)/10)); 
write_word(320,316,16,32,LCDBCOLOR,LCDFTCOLOR,number(dtqy%10));  
 
write_word(256,372,16,32,LCDBCOLOR,LCDFTCOLOR,number(cybj/100));
write_word(272,372,16,24,LCDBCOLOR,LCDFTCOLOR,o5);
write_word(288,372,16,32,LCDBCOLOR,LCDFTCOLOR,number((cybj%100)/10));
write_word(304,372,16,32,LCDBCOLOR,LCDFTCOLOR,number(cybj%10));  
}  	

/***********************************************************************************
          				   			后台通信设置界面
***********************************************************************************/

void picture8(unsigned char flag,unsigned char xmbh,unsigned char txdz,unsigned char txsl,unsigned char txxy){
 if(flag==0){
 	comm_key();
 	write_word(32,100,32,32,LCDBCOLOR,LCDFTCOLOR,t150);   //后
 	write_word(64,100,32,32,LCDBCOLOR,LCDFTCOLOR,t151);   //台
 	write_word(96,100,32,32,LCDBCOLOR,LCDFTCOLOR,t152);   //通
 	write_word(128,100,32,32,LCDBCOLOR,LCDFTCOLOR,t153);   //信
 	write_word(160,100,32,32,LCDBCOLOR,LCDFTCOLOR,t63);   //设
 	write_word(192,100,32,32,LCDBCOLOR,LCDFTCOLOR,t64);   //置
 	write_word(224,108,16,24,LCDBCOLOR,LCDFTCOLOR,o6);
 
 	draw(56,140,216,188,LCDFW1COLOR);
 	write_word(64,148,32,32,LCDBCOLOR,LCDFTCOLOR,t152);   //通
 	write_word(96,148,32,32,LCDBCOLOR,LCDFTCOLOR,t153);   //信
 	write_word(128,148,32,32,LCDBCOLOR,LCDFTCOLOR,t176);   //地
 	write_word(160,148,32,32,LCDBCOLOR,LCDFTCOLOR,t177);   //址
 	write_word(192,156,16,24,LCDBCOLOR,LCDFTCOLOR,o6);
 
 	draw(56,196,216,244,LCDFW1COLOR);
 	write_word(64,204,32,32,LCDBCOLOR,LCDFTCOLOR,t152);   //通
 	write_word(96,204,32,32,LCDBCOLOR,LCDFTCOLOR,t153);   //信
 	write_word(128,204,32,32,LCDBCOLOR,LCDFTCOLOR,t154);   //速
 	write_word(160,204,32,32,LCDBCOLOR,LCDFTCOLOR,t155);   //率
 	write_word(192,204,16,24,LCDBCOLOR,LCDFTCOLOR,o6); 

 	write_word(312,204,16,32,LCDBCOLOR,LCDFTCOLOR,e13);	//b
 	write_word(328,204,16,32,LCDBCOLOR,LCDFTCOLOR,e1);	//p
 	write_word(344,204,16,32,LCDBCOLOR,LCDFTCOLOR,e7);	//s
 
 	write_word(80,252,16,32,LCDBCOLOR,LCDFTCOLOR,number(1));
 	write_word(96,252,16,24,LCDBCOLOR,LCDFTCOLOR,o6);
 	write_word(112,252,16,32,LCDBCOLOR,LCDFTCOLOR,number(1));
 	write_word(128,252,16,32,LCDBCOLOR,LCDFTCOLOR,number(2));
 	write_word(144,252,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 	write_word(160,252,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 
 	write_word(200,252,16,32,LCDBCOLOR,LCDFTCOLOR,number(2));
 	write_word(216,252,16,24,LCDBCOLOR,LCDFTCOLOR,o6);
 	write_word(232,252,16,32,LCDBCOLOR,LCDFTCOLOR,number(2));
 	write_word(248,252,16,32,LCDBCOLOR,LCDFTCOLOR,number(4));
 	write_word(264,252,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 	write_word(280,252,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 
 	write_word(320,252,16,32,LCDBCOLOR,LCDFTCOLOR,number(3));
 	write_word(336,252,16,24,LCDBCOLOR,LCDFTCOLOR,o6);
 	write_word(352,252,16,32,LCDBCOLOR,LCDFTCOLOR,number(4));
 	write_word(368,252,16,32,LCDBCOLOR,LCDFTCOLOR,number(8));
 	write_word(384,252,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 	write_word(400,252,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 
 	write_word(80,292,16,32,LCDBCOLOR,LCDFTCOLOR,number(4));
 	write_word(96,292,16,24,LCDBCOLOR,LCDFTCOLOR,o6);
 	write_word(112,292,16,32,LCDBCOLOR,LCDFTCOLOR,number(9));
 	write_word(128,292,16,32,LCDBCOLOR,LCDFTCOLOR,number(6));
 	write_word(144,292,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 	write_word(160,292,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 
 	write_word(200,292,16,32,LCDBCOLOR,LCDFTCOLOR,number(5));
 	write_word(216,292,16,24,LCDBCOLOR,LCDFTCOLOR,o6);
 	write_word(232,292,16,32,LCDBCOLOR,LCDFTCOLOR,number(1));
 	write_word(248,292,16,32,LCDBCOLOR,LCDFTCOLOR,number(9));
 	write_word(264,292,16,32,LCDBCOLOR,LCDFTCOLOR,number(2));
 	write_word(280,292,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 	write_word(296,292,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 
 	draw(56,332,216,380,LCDFW1COLOR);
 	write_word(64,340,32,32,LCDBCOLOR,LCDFTCOLOR,t152);   //通
 	write_word(96,340,32,32,LCDBCOLOR,LCDFTCOLOR,t153);   //信
 	write_word(128,340,32,32,LCDBCOLOR,LCDFTCOLOR,t156);   //协
 	write_word(160,340,32,32,LCDBCOLOR,LCDFTCOLOR,t157);   //议
 	write_word(192,348,16,24,LCDBCOLOR,LCDFTCOLOR,o6);
 
 
 	write_word(80,388,16,32,LCDBCOLOR,LCDFTCOLOR,number(1));
 	write_word(96,388,16,24,LCDBCOLOR,LCDFTCOLOR,o6);
 	write_word(112,388,16,32,LCDBCOLOR,LCDFTCOLOR,e6);
 	write_word(128,388,16,32,LCDBCOLOR,LCDFTCOLOR,e4);
 	write_word(144,388,16,32,LCDBCOLOR,LCDFTCOLOR,e11);
 	write_word(160,388,32,32,LCDBCOLOR,LCDFTCOLOR,t156);   //协
 	write_word(192,388,32,32,LCDBCOLOR,LCDFTCOLOR,t157);   //议
 	write_word(272,388,16,32,LCDBCOLOR,LCDFTCOLOR,number(2));
 	write_word(288,388,16,24,LCDBCOLOR,LCDFTCOLOR,o6);
 	write_word(304,388,16,32,LCDBCOLOR,LCDFTCOLOR,e10);
 	write_word(320,388,16,32,LCDBCOLOR,LCDFTCOLOR,e12);
 	write_word(336,388,16,32,LCDBCOLOR,LCDFTCOLOR,e4);
 	write_word(352,388,32,32,LCDBCOLOR,LCDFTCOLOR,t156);   //协
 	write_word(384,388,32,32,LCDBCOLOR,LCDFTCOLOR,t157);   //议
 
 }
 else{
 	switch(xmbh){
 		case 1:       
 			draw(56,140,216,188,LCDFSCOLOR);  //控制框 
 			draw(56,196,216,244,LCDFW1COLOR);  //控制框 
 			draw(56,332,216,380,LCDFW1COLOR);  //控制框
 			
 			break;
 		case 2:   
   			draw(56,196,216,244,LCDFSCOLOR);  //控制框 
   			draw(56,140,216,188,LCDFW1COLOR);  //控制框 
 			
 			draw(56,332,216,380,LCDFW1COLOR);  //控制框
 			
   			break;
		case 3:
                	draw(56,332,216,380,LCDFSCOLOR);  //控制框
                	draw(56,140,216,188,LCDFW1COLOR);  //控制框 
 			draw(56,196,216,244,LCDFW1COLOR);  //控制框 
 			
                	break;
 	}
 }
 write_word(232,148,16,32,LCDBCOLOR,LCDFTCOLOR,number(txdz/10));
 write_word(248,148,16,32,LCDBCOLOR,LCDFTCOLOR,number(txdz%10));
 switch(txsl){
 	case 1:
 		write_word(232,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(1));
 		write_word(248,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(2));
 		write_word(264,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 		write_word(280,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 		break;
 	case 2:
 		write_word(232,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(2));
 		write_word(248,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(4));
 		write_word(264,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 		write_word(280,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 		break;
 	
 	case 3:
 		write_word(232,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(4));
 		write_word(248,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(8));
 		write_word(264,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 		write_word(280,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 		break; 
 	case 4:
 		write_word(232,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(9));
 		write_word(248,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(6));
 		write_word(264,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 		write_word(280,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 		break;
 	case 5:
 		write_word(232,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(1));
 		write_word(248,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(9));
 		write_word(264,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(2));
 		write_word(280,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 		write_word(296,204,16,32,LCDBCOLOR,LCDFTCOLOR,number(0));
 		break;
 } 
 
 switch(txxy){
 	case 1:
 	      	write_word(232,340,16,32,LCDBCOLOR,LCDFTCOLOR,e6);
 		write_word(248,340,16,32,LCDBCOLOR,LCDFTCOLOR,e4);
 		write_word(264,340,16,32,LCDBCOLOR,LCDFTCOLOR,e11);
 		write_word(280,340,32,32,LCDBCOLOR,LCDFTCOLOR,t156);   //协
 		write_word(312,340,32,32,LCDBCOLOR,LCDFTCOLOR,t157);   //议
 		break;
 	case 2:
       		write_word(232,340,16,32,LCDBCOLOR,LCDFTCOLOR,e10);
 		write_word(248,340,16,32,LCDBCOLOR,LCDFTCOLOR,e12);
 		write_word(264,340,16,32,LCDBCOLOR,LCDFTCOLOR,e4);
 		write_word(280,340,32,32,LCDBCOLOR,LCDFTCOLOR,t156);   //协
 		write_word(312,340,32,32,LCDBCOLOR,LCDFTCOLOR,t157);   //议
 		break;
 }
}


/**************************************************************************************
       								密码时间设置界面         
入口参数:
a:界面刷新选择 1:刷新全部界面 2:刷新数据区域
b:0-9 按键 11清除
**************************************************************************************/
void picture9(unsigned char flag,unsigned char xmbh,unsigned long int szmm,unsigned long int time,unsigned long int date){      
 if(flag==0){
 	comm_key();
 	write_word(32,100,32,32,LCDBCOLOR,LCDFTCOLOR,t50);   //密
 	write_word(64,100,32,32,LCDBCOLOR,LCDFTCOLOR,t51);   //码
 	write_word(96,100,32,32,LCDBCOLOR,LCDFTCOLOR,t42);   //时
 	write_word(128,100,32,32,LCDBCOLOR,LCDFTCOLOR,t43);   //间
 	write_word(160,100,32,32,LCDBCOLOR,LCDFTCOLOR,t63);   //设
 	write_word(192,100,32,32,LCDBCOLOR,LCDFTCOLOR,t64);   //置
 	write_word(224,108,16,24,LCDBCOLOR,LCDFTCOLOR,o6);
 
 	draw(56,148,280,196,LCDFW1COLOR);
 	write_word(64,156,32,32,LCDBCOLOR,LCDFTCOLOR,t106);   //系
 	write_word(96,156,32,32,LCDBCOLOR,LCDFTCOLOR,t107);   //统
 	write_word(128,156,32,32,LCDBCOLOR,LCDFTCOLOR,t63);   //设
 	write_word(160,156,32,32,LCDBCOLOR,LCDFTCOLOR,t64);   //置
 	write_word(192,156,32,32,LCDBCOLOR,LCDFTCOLOR,t50);   //密
 	write_word(224,156,32,32,LCDBCOLOR,LCDFTCOLOR,t51);   //码
 	write_word(256,164,16,24,LCDBCOLOR,LCDFTCOLOR,o6);

 	draw(56,212,152,260,LCDFW1COLOR);
 	write_word(64,220,32,32,LCDBCOLOR,LCDFTCOLOR,t172);   //日
 	write_word(96,220,32,32,LCDBCOLOR,LCDFTCOLOR,t49);    //期   
 	write_word(128,228,16,24,LCDBCOLOR,LCDFTCOLOR,o6);
 
 	draw(56,276,152,324,LCDFW1COLOR);    
 	write_word(64,284,32,32,LCDBCOLOR,LCDFTCOLOR,t42);   //时
 	write_word(96,284,32,32,LCDBCOLOR,LCDFTCOLOR,t43);   //间  
 	write_word(128,292,16,24,LCDBCOLOR,LCDFTCOLOR,o6);
 	
 } 
 else{
 	switch(xmbh){
 	case 1: 
 		draw(56,148,280,196,LCDFSCOLOR);  //控制框 
 		draw(56,212,152,260,LCDFW1COLOR);  //控制框 
 		draw(56,276,152,324,LCDFW1COLOR);  //控制框
 		
 		break;
 	case 2:   
   		draw(56,148,280,196,LCDFW1COLOR);  //控制框 
 		draw(56,212,152,260,LCDFSCOLOR);  //控制框 
 		draw(56,276,152,324,LCDFW1COLOR);  //控制框
   		break;
	case 3:
                draw(56,148,280,196,LCDFW1COLOR);  //控制框 
 		draw(56,212,152,260,LCDFW1COLOR);  //控制框 
 		draw(56,276,152,324,LCDFSCOLOR);  //控制框
                break;
   }
 }
 write_word(296,156,16,32,LCDBCOLOR,LCDFTCOLOR,number(szmm/10000));
 write_word(312,156,16,32,LCDBCOLOR,LCDFTCOLOR,number((szmm%10000)/1000));
 write_word(328,156,16,32,LCDBCOLOR,LCDFTCOLOR,number((szmm%1000)/100));
 write_word(344,156,16,32,LCDBCOLOR,LCDFTCOLOR,number((szmm%100)/10));
 write_word(360,156,16,32,LCDBCOLOR,LCDFTCOLOR,number(szmm%10));
 
 write_word(168,220,16,32,LCDBCOLOR,LCDFTCOLOR,number(date/100000));
 write_word(184,220,16,32,LCDBCOLOR,LCDFTCOLOR,number((date%100000)/10000));
 write_word(200,220,16,24,LCDBCOLOR,LCDFTCOLOR,o2);
 write_word(216,220,16,32,LCDBCOLOR,LCDFTCOLOR,number((date%10000)/1000));
 write_word(232,220,16,32,LCDBCOLOR,LCDFTCOLOR,number((date%1000)/100));
 write_word(248,220,16,24,LCDBCOLOR,LCDFTCOLOR,o2);
 write_word(264,220,16,32,LCDBCOLOR,LCDFTCOLOR,number((date%100)/10));
 write_word(280,220,16,32,LCDBCOLOR,LCDFTCOLOR,number(date%10));
 
 write_word(168,284,16,32,LCDBCOLOR,LCDFTCOLOR,number(time/100000));
 write_word(184,284,16,32,LCDBCOLOR,LCDFTCOLOR,number((time%100000)/10000));
 write_word(200,284,16,24,LCDBCOLOR,LCDFTCOLOR,o6);
 write_word(216,284,16,32,LCDBCOLOR,LCDFTCOLOR,number((time%10000)/1000));
 write_word(232,284,16,32,LCDBCOLOR,LCDFTCOLOR,number((time%1000)/100));
 write_word(248,284,16,24,LCDBCOLOR,LCDFTCOLOR,o6);
 write_word(264,284,16,32,LCDBCOLOR,LCDFTCOLOR,number((time%100)/10));
 write_word(280,284,16,32,LCDBCOLOR,LCDFTCOLOR,number(time%10));    	
} 
/******************************************************************************************
						系统设置选择控制界面
入口参数:
flag:数据刷新标志 1:刷新全部数据 2:第一步到第五步数据 
line:刷新数据行 1:第一步 2:第二步 3:第三步 4:第四步 5:第五步
*****************************************************************************************/

void picture10(){ 
	comm_key();
 	write_word(32,80,32,32,LCDBCOLOR,LCDFTCOLOR,t106);      //系
	write_word(64,80,32,32,LCDBCOLOR,LCDFTCOLOR,t107);   	//统
	write_word(96,80,32,32,LCDBCOLOR,LCDFTCOLOR,t63);   	//设
	write_word(128,80,32,32,LCDBCOLOR,LCDFTCOLOR,t64);  	//置
	write_word(160,88,16,24,LCDBCOLOR,LCDFTCOLOR,o6);  	//: 

	draw(40,136,232,216,LCDFW1COLOR);  //控制框
	write_word(72,160,32,32,LCDBCOLOR,LCDFTCOLOR,t100);    //电
	write_word(104,160,32,32,LCDBCOLOR,LCDFTCOLOR,t101);   //池
	write_word(136,160,32,32,LCDBCOLOR,LCDFTCOLOR,t144);   //监
	write_word(168,160,32,32,LCDBCOLOR,LCDFTCOLOR,t145);   //控

	draw(312,136,504,216,LCDFW1COLOR);  //控制框
	write_word(344,160,32,32,LCDBCOLOR,LCDFTCOLOR,t150);   //后
	write_word(376,160,32,32,LCDBCOLOR,LCDFTCOLOR,t151);   //台
	write_word(408,160,32,32,LCDBCOLOR,LCDFTCOLOR,t152);   //通
	write_word(440,160,32,32,LCDBCOLOR,LCDFTCOLOR,t153);   //信

	draw(40,232,232,312,LCDFW1COLOR);  //控制框
	write_word(72,256,32,32,LCDBCOLOR,LCDFTCOLOR,t50);    //密
	write_word(104,256,32,32,LCDBCOLOR,LCDFTCOLOR,t51);   //码
	write_word(136,256,32,32,LCDBCOLOR,LCDFTCOLOR,t42);   //时
	write_word(168,256,32,32,LCDBCOLOR,LCDFTCOLOR,t43);   //间
}  

⌨️ 快捷键说明

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