📄 dispclk.h
字号:
void dispclk()
{ P8563_ReadTime();
while(!lcdok); lcdok=0;
while(txtolcd);
tolcd[0]=0xFF; /*年*/
tolcd[1]=19;//20;
tolcd[2]=14;//112;
tolcd[3]=0xFF;
tolcd[4]=(g8563_Store[5]>>4)+0X10;
txtolcd=1;
TI=1;
while(!lcdok); lcdok=0;
while(txtolcd);
tolcd[0]=0xFF; /*年*/
tolcd[1]=20;//20;
tolcd[2]=14;//112;
tolcd[3]=0xFF;
tolcd[4]=(g8563_Store[5]&0XF)+0X10;
txtolcd=1;
TI=1;
while(!lcdok); lcdok=0;
while(txtolcd);
tolcd[0]=0xFF; /*/*/
tolcd[1]=21;//20;
tolcd[2]=14;//112;
tolcd[3]=0xFF;
tolcd[4]=0X0F;//g8563_Store[3];
txtolcd=1;
TI=1;
while(!lcdok); lcdok=0;
while(txtolcd);
tolcd[0]=0xFF; /*月*/
tolcd[1]=22;//20;
tolcd[2]=14;//112;
tolcd[3]=0xFF;
tolcd[4]=(g8563_Store[4]>>4)+0X10;
txtolcd=1;
TI=1;
while(!lcdok); lcdok=0;
while(txtolcd);
tolcd[0]=0xFF; /*月*/
tolcd[1]=23;//20;
tolcd[2]=14;//112;
tolcd[3]=0xFF;
tolcd[4]=(g8563_Store[4]&0XF)+0X10;
txtolcd=1;
TI=1;
while(!lcdok); lcdok=0;
while(txtolcd);
tolcd[0]=0xFF; /*/*/
tolcd[1]=24;//20;
tolcd[2]=14;//112;
tolcd[3]=0xFF;
tolcd[4]=0X0F;//g8563_Store[3];
txtolcd=1;
TI=1;
while(!lcdok); lcdok=0;
while(txtolcd);
tolcd[0]=0xFF; /*日*/
tolcd[1]=25;//20;
tolcd[2]=14;//112;
tolcd[3]=0xFF;
tolcd[4]=(g8563_Store[3]>>4)+0X10;
txtolcd=1;
TI=1;
while(!lcdok); lcdok=0;
while(txtolcd);
tolcd[0]=0xFF; /*日*/
tolcd[1]=26;//20;
tolcd[2]=14;//112;
tolcd[3]=0xFF;
tolcd[4]=(g8563_Store[3]&0XF)+0X10;
txtolcd=1;
TI=1;
while(!lcdok); lcdok=0;
while(txtolcd);
tolcd[0]=0xFF; /*时*/
tolcd[1]=19;//20;
tolcd[2]=15;//112;
tolcd[3]=0xFF;
tolcd[4]=(g8563_Store[2]>>4)+0X10;
txtolcd=1;
TI=1;
while(!lcdok); lcdok=0;
while(txtolcd);
tolcd[0]=0xFF; /*时*/
tolcd[1]=20;//20;
tolcd[2]=15;//112;
tolcd[3]=0xFF;
tolcd[4]=(g8563_Store[2]&0XF)+0X10;
txtolcd=1;
TI=1;
while(!lcdok); lcdok=0;
while(txtolcd);
tolcd[0]=0xFF; /*/*/
tolcd[1]=21;//20;
tolcd[2]=15;//112;
tolcd[3]=0xFF;
tolcd[4]=0X1A;
txtolcd=1;
TI=1;
while(!lcdok); lcdok=0;
while(txtolcd);
tolcd[0]=0xFF; /*分*/
tolcd[1]=22;//20;
tolcd[2]=15;//112;
tolcd[3]=0xFF;
tolcd[4]=(g8563_Store[1]>>4)+0X10;
txtolcd=1;
TI=1;
while(!lcdok); lcdok=0;
while(txtolcd); tolcd[0]=0xFF; /*分*/
tolcd[1]=23;//20;
tolcd[2]=15;//112;
tolcd[3]=0xFF;
tolcd[4]=(g8563_Store[1]&0X0F)+0X10;
txtolcd=1;
TI=1;
/////////////////////////////////////
while(!lcdok); lcdok=0;
while(txtolcd);
tolcd[0]=0xFF; /*/*/
tolcd[1]=24;//20;
tolcd[2]=15;//112;
tolcd[3]=0xFF;
tolcd[4]=0X1A;
txtolcd=1;
TI=1;
i=g8563_Store[0];
while(!lcdok); lcdok=0;
while(txtolcd);
tolcd[0]=0xFF; /*秒*/
tolcd[1]=25;//20;
tolcd[2]=15;//112;
tolcd[3]=0xFF;
tolcd[4]=(i>>4)+0X10;
txtolcd=1;
TI=1;
while(!lcdok); lcdok=0;
while(txtolcd);
tolcd[0]=0xFF; /*秒*/
tolcd[1]=26;//20;
tolcd[2]=15;//112;
tolcd[3]=0xFF;
tolcd[4]=(i&0X0F)+0X10;
txtolcd=1;
TI=1;
}//end if(shizhong==0)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -