高级会员
主题
回帖0
积分3921
阅读权限30
注册时间2011-10-27
最后登录1970-1-1
在线时间 小时
|
楼主 |
发表于 2014-5-30 15:20
|
显示全部楼层
main()
{
sys_init();
delay2(100);
while(1)
{
char Bhour;
if(buf_full==1)
{
Bhour=((time[0]-0x30)*10+time[1]-0x30)+TIME_AREA;
if(Bhour>=24)
Bhour-=24;
else if(Bhour<0)
Bhour+=24;
if(lock==0x41)
LcmPutChar(70,2,13);
else
LcmPutChar(70,2,14);
LcmPutChar(50,4,Bhour/10);
LcmPutChar(59,4,Bhour%10);
LcmPutChar(74,4,time[2]-0x30);
LcmPutChar(83,4,time[3]-0x30);
LcmPutChar(98,4,time[4]-0x30);
LcmPutChar(107,4,time[5]-0x30);
LcmPutChar(58,6,time1[4]-0x30);
LcmPutChar(67,6,time1[5]-0x30);
LcmPutChar(82,6,time1[2]-0x30);
LcmPutChar(91,6,time1[3]-0x30);
LcmPutChar(106,6,time1[0]-0x30);
LcmPutChar(115,6,time1[1]-0x30);
buf_full=0;
}
}
}
|
|