displist.h
来自「用S52和1602液晶做的可进行设置的多级菜单」· C头文件 代码 · 共 51 行
H
51 行
#include<lcm.h>
unsigned char GetGewei(unsigned char temp)
{
temp = temp%10;
return temp;
}
unsigned char GetShiwei(unsigned char temp)
{
temp = temp%100;
temp = temp/10;
return temp;
}
void DispSetTime(unsigned char hour,unsigned char min,unsigned char weizhi)
{
/****************
(hour:min) 00:00
set time: ^
****************/
unsigned char HH,HL,LH,LL;
printx(0,0,"(hour:min) : ");
printx(0,0,"set time: ");
HH = GetShiwei(hour);
HL = GetGewei(hour);
LH = GetShiwei(min);
LL = GetGewei(min);
DispOneChar(11,0,table[HH]);
DispOneChar(12,0,table[HL]);
DispOneChar(14,0,table[LH]);
DispOneChar(15,0,table[LL]);
if(weizhi == 1)
{
printx(0,0,"set time: ^ ");
}
if(weizhi == 2)
{
printx(0,0,"set time: ^ ");
}
if(weizhi == 3)
{
printx(0,0,"set time: ^ ");
}
if(weizhi == 4)
{
printx(0,0,"set time: ^");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?