標(biāo)題: stc15f2k60s2時(shí)鐘溫度按鍵程序 [打印本頁]

作者: hanhhh    時(shí)間: 2018-10-27 14:19
標(biāo)題: stc15f2k60s2時(shí)鐘溫度按鍵程序
stc15f2k60s2時(shí)鐘溫度按鍵程序

單片機(jī)源程序如下:
  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. }
復(fù)制代碼

所有資料51hei提供下載:
#溫度,時(shí)鐘,計(jì)時(shí)器,流水燈,按鍵.zip (36.85 KB, 下載次數(shù): 25)



作者: admin    時(shí)間: 2018-11-1 16:02
補(bǔ)全原理圖或者詳細(xì)說明一下電路連接即可獲得100+黑幣




歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1