📄 displist.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -