自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(1)
  • 资源 (2)
  • 收藏
  • 关注

转载 Linux下查看内存方法

最好不用top 因为它是动态的   我们一般用free命令: [root@scs-2 tmp]# free              total       used       free     shared    buffers     cached Mem:       3266180    3250004      16176          0     110652    2

2013-05-02 15:09:26 366

12864 DS18B20 继电器 按键 温度控制系统

基于12864 DS18B20 继电器 按键 温度控制系统 的温度控制系统 ,3个12864界面转换 控制2路继电器

2012-05-31

单片机程序 12864+ 1302+ 18b20

给力的程序 #include <reg52.h> #include <intrins.h> #include <LCD12864.h> #include <DS1302.h> #include "ds18b20.h" unsigned char time1[17] = {"20 年 月 日"}; unsigned char time2[17] = {" 时 分 秒"}; unsigned char week[17] = {"星期 "}; unsigned char qq[17] = {"QQ:337072753"}; unsigned char wendu[17] = {"温度: . ℃"}; struct SYSTEMTIME TIME = {0X40,0X49,0X21,0X04,0X08,0X05,0X09}; void main(void) { DS1302_Initial(); DS1302_SetTime(&TIME;); Delay400Ms(); //启动等待,等LCD讲入工作状态 LCDInit(); //LCM初始化 Delay5Ms(); //延时片刻(可不要) while(1) { DS18B20(); DS1302_GetTime(&TIME;); time1[2] = TIME.Year / 16 + 0x30; time1[3] = TIME.Year % 16 + 0x30; time1[6] = TIME.Month / 16 + 0x30; time1[7] = TIME.Month % 16 + 0x30; time1[10] = TIME.Day / 16 + 0x30; time1[11] = TIME.Day % 16 + 0x30; time2[0] = TIME.Hour / 16 + 0x30; time2[1] = TIME.Hour % 16 + 0x30; time2[4] = TIME.Minute / 16 + 0x30; time2[5] = TIME.Minute % 16 + 0x30; time2[8] = TIME.Second / 16 + 0x30; time2[9] = TIME.Second % 16 + 0x30; /*if(temfg == 1) wendu[7] = '-'; wendu[8] = temsdata1 + '0'; wendu[9] = temsdata2 + '0'; wendu[11] = temxiaoshu1 + '0'; wendu[12] = temxiaoshu2 + '0'; week[4] = TIME.Week + 0x30; */ // LCDClear(); DisplayListChar(0,0,time1); //显示字库中的中文数字 DisplayListChar(1,1,time2); //显示字库中的中文数字 DisplayListChar(2,2,week); //显示字库中的中文 DisplayListChar(1,3,qq); //显示字库中的中文数字 Delay400Ms(); DisplayListChar(0,3,wendu); //显示字库中的中文数字 Delay400Ms(); } /* Delay400Ms(); //启动等待,等LCD讲入工作状态 Delay400Ms(); //启动等待,等LCD讲入工作状态 LCDInit(); //LCM初始化 Delay5Ms(); //延时片刻(可不要) while(1) { LCDClear(); DisplayListChar(0,0,uctech); //显示字库中的中文数字 Delay400Ms(); DisplayListChar(0,1,net); //显示字库中的中文数字 Delay400Ms(); DisplayListChar(0,2,mcu); //显示字库中的中文 Delay400Ms(); DisplayListChar(0,3,qq); //显示字库中的中文数字 Delay400Ms(); LCDFlash(); //闪烁效果 } */ }

2012-04-19

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除