1602 DS1302 可设闹钟万年历(20)
时间:2026-01-23
时间:2026-01-23
接口
P3=0xff; //定义按键
if(P3!=0Xff)
{
delay1ms(100); if(P3!=0Xff)
{ {
j=7; if(P3==0Xfe)
{ }
i+=3; if(i==0x8e)
i=0xc2;
//延时0.1s去抖动
else if(i>0xc5)
i=0x85;
else if(P3==0xfd)
year=(time1[4]&0xf)*10+(time1[5]&0xf);
month=(time1[7]&0xf)*10+(time1[8]&0xf);
day=(time1[10]&0xf)*10+(time1[11]&0xf);
if(i==0x85)
{
year++; if(year>99) year=0;
if((year%4)!=0)
上一篇:淘宝客服质检评分
下一篇:物联网与近距离无线通信技术概述