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

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

很不错的 哦。。

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==30)day=1; //闰年2月天数计算 if(moth==2&&(year%4!=0)&&day==29)day=1; //平年2月

if((moth==4||moth==6||moth==9||moth==11)&&day==31)day=1;//4,6,9,11月计算

if(day==32)day=1;//1,3,5,7,8,10,12月天数计算 Write_Comm(0xC9);

Write_Data(SEG_TAB[day/10]);

Write_Comm(0xCa);

Write_Data(SEG_TAB[day%10]);

}

if(N==4)

{

moth++;

if(moth==13)moth=1;

Write_Comm(0xc6);

Write_Data(SEG_TAB[moth/10]);

Write_Comm(0xc7);

Write_Data(SEG_TAB[moth%10]);

}

if(N==5)

{

year++;

if(year==51)year=0;

Write_Comm(0xc3);

Write_Data(SEG_TAB[year/10]);

Write_Comm(0xc4);

Write_Data(SEG_TAB[year%10]);

}

if(N==6)

{

week++;

if(week==8) week=1;

Write_Comm(0xcc);

Write_Data(SEG_TAB[year/10]);

}

上一页第9页

热门文档

相关文档

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