标题: stc15f2k60s2时钟温度按键程序 [打印本页]

作者: hanhhh    时间: 2018-10-27 14:19
标题: stc15f2k60s2时钟温度按键程序
stc15f2k60s2时钟温度按键程序

单片机源程序如下:
  1. #include "stc15f2k60s2.h"
  2. #include "shumaguan.h"
  3. #include "djs.h"
  4. #include "leddeng.h"
  5. #include "zhongduan.h"
  6. #include "DS18B20.H"
  7. #include "enjian.h"

  8. void main()
  9. {

  10.   P2 = ((P2&0X1F)|0xa0);
  11.   P0 = 0x00;
  12.   P2&=0x1f;
  13.   init();
  14.   while(1)
  15.   {
  16.        
  17.         if(jm==1)
  18.         {
  19.          smgxs(ss,sg,10,fs,fg,10,ms,mg);
  20.         }
  21.         if(jm==2)
  22.         {
  23.          smgxs(13,13,13,13,wds,wdg,11,12);
  24.         }
  25.         if(jm==3)
  26.         {
  27.           led();
  28.         }
  29.           blfl();
  30.           ymzh();
  31.           naozhong();
  32.           wendu = ChangTemp_chabiao();
  33.           
  34.   
  35.   }
  36. }
复制代码

所有资料51hei提供下载:
#温度,时钟,计时器,流水灯,按键.zip (36.85 KB, 下载次数: 25)



作者: admin    时间: 2018-11-1 16:02
补全原理图或者详细说明一下电路连接即可获得100+黑币




欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1