键盘子程序 .txt
来自「毕业论文全套~ 本课题主要设计一种气体泄漏检测系统。」· 文本 代码 · 共 60 行
TXT
60 行
n=P1;
n=n&0x0f;
if(n!=15)
{
key_new=n;
}
if(key_new==13)
{
clear(1);
t_heat=0;
heat=0;
ge=ge+1;
tt=10*shi+ge;
if(ge==9)
{
ge=0;
}
dis_word(set,0xc0,8);
display(tt,0xc4);
key_new=0;
}
if(key_new==11)
{
clear(1);
t_heat=0;
heat=0;
shi=shi+1;
tt=10*shi+ge;
if(shi==11)
{
shi=0;
}
dis_word(set,0xc0,8);
display(tt,0xc4);
key_new=0;
}
if(key_new==14)
{
clear(1);
tt=10*shi+ge;
dis_word(set,0xc0,8);
display(tt,0xc4);
heat=1;
key_new=0;
}
if(key_new==7)
{
clear(1);
stop=1;
heat=0;
t_heat=0;
t_cool=0;
dis_word(stoped,0xc0,6);
key_new=0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?