文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > 工程科技 > 信息与通信 > 基于51单片机带温度显示的液晶万年历 [当文网提供]
侵权投诉

基于51单片机带温度显示的液晶万年历 [当文网提供]

很不错的 哦。。

while(S4==0);

}

}

if(S5==0)//时间调整--减

{

delay1(10);

if(S5==0)

{

if(N==1)

{

min--;if(min<0) {min=59;}

Write_Comm(0x84);

Write_Data(SEG_TAB[min/10]);

Write_Comm(0x85);

Write_Data(SEG_TAB[min%10]);

}

if(N==2)

{ hour--;if(hour<0){hour=23;}

Write_Comm(0x81);

Write_Data(SEG_TAB[hour/10]);

Write_Comm(0x82);

Write_Data(SEG_TAB[hour%10]);

}

if(N==3)

{ day--;

if(moth==2&&(year%4==0)&&day<1)day=29; if(moth==2&&(year%4!=0)&&day<1)day=28;

if((moth==4||moth==6||moth==9||moth==11)&&day<1)day=30;

if(day<1)day=31;

Write_Comm(0xC9);

Write_Data(SEG_TAB[day/10]);

Write_Comm(0xCa);

Write_Data(SEG_TAB[day%10]);

}

if(N==4)

{ moth--;

if(moth==0){moth=12;}

Write_Comm(0xc6);

Write_Data(SEG_TAB[moth/10]);

Write_Comm(0xc7);

Write_Data(SEG_TAB[moth%10]);

上一页第10页

热门文档

相关文档

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email