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

📄 jz.c

📁 基于MB95F168气体检漏仪软件代码
💻 C
字号:
#include "mb95100.h"
extern unsigned char keybuf;
unsigned int press[3],voltpress[3];
_YLJZ()
{
unsigned char num=0;
unsigned char x=0;
unsigned char buf[5]={0};
while(_Judgekey()!=0)
{
	while(_Judgekey()!=0x09&&_Judgekey()!=0x00)
	{
	while(_Judgekey()!=3)
	{
	ShowHZ16x16(2,num+2,96);
   	if(keybuf==0x01) num+=1;
	else if(keybuf==0x02) num-=1;
	if(num==0x03) num=0x00;
	if(num==0xff) num=0x02;
	ShowHZ16x16(2,num+2,95);
	}
	
	while(_Judgekey()!=3)
	{
	
	if(keybuf==0x00) 
	{
	x+=1;
	if(x==5) x=0;
	}
		else if(keybuf==0x01) buf[x]-=1;
		else if(keybuf==0x02) buf[x]+=1;
	if(buf[x]>=0x0a&&buf[x]<=0xe0) 
	buf[x]=0;
	else if(buf[x]<=0xff&&buf[x]>=0xf0) 
	buf[x]=9;
	else buf[x]=buf[x];
	ShowSZ16x16(13-x,num+2,buf[x]);
	}
	for(x=0;x<5;x++)
	{
	press[num]*=10;
	press[num]+=buf[4-x];
	buf[4-x]=0;
	}
	x=0;
	while(_Judgekey()!=3)
	{
	if(keybuf==0x00) 
	{
	x+=1;
	if(x==5) x=0;
	}
		else if(keybuf==0x01) buf[x]-=1;
		else if(keybuf==0x02) buf[x]+=1;
	if(buf[x]>=0x0a&&buf[x]<=0xe0) 
	buf[x]=0;
	else if(buf[x]<=0xff&&buf[x]>=0xf0) 
	buf[x]=9;
	else buf[x]=buf[x];
	ShowSZ16x16(22-x,num+2,buf[x]);
	}
	for(x=0;x<5;x++)
	{
	voltpress[num]*=10;
	voltpress[num]+=buf[4-x];
	buf[4-x]=0;
	}
	x=0;
	}
}
}

⌨️ 快捷键说明

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