<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 單片機(jī)實(shí)現(xiàn)的溫度顯示系統(tǒng)

          單片機(jī)實(shí)現(xiàn)的溫度顯示系統(tǒng)

          作者: 時(shí)間:2016-11-26 來(lái)源:網(wǎng)絡(luò) 收藏

          本文引用地址:http://www.ex-cimer.com/article/201611/321778.htm

          //********************************

          //時(shí)鐘萬(wàn)年歷+溫度+液晶顯示

          //LCD1602+DS1302+DS18B20

          //作者:曾憲陽(yáng)

          //網(wǎng)址:http://hi.baidu.com/zxymcu

          //********************************

          #include

          #include"zxysrc/ds1302.h"

          #include"zxysrc/lcd1602.h"

          #include"zxysrc/delay.h"

          #include"zxysrc/DS18B20.H"

          voidDisplay(void)

          {

          ReadDs1302All();

          ReadTemp();

          Wr1602Cmd(0x80);

          Wr1602Dat(0+shi/16);

          Wr1602Dat(0+shi);

          Wr1602Dat(:);

          Wr1602Dat(0+fen/16);

          Wr1602Dat(0+fen);

          Wr1602Dat(:);

          Wr1602Dat(0+miao/16);

          Wr1602Dat(0+miao);

          Wr1602Dat();

          Wr1602Dat(T);

          Wr1602Dat(:);

          Wr1602Dat(0+DisBufT[1]);

          Wr1602Dat(0+DisBufT[2]);

          Wr1602Dat(.);

          Wr1602Dat(0+DisBufT[3]);

          Wr1602Dat(0+DisBufT[4]);

          Wr1602Cmd(0xc0);

          Wr1602Dat(0+nian/16);

          Wr1602Dat(0+nian);

          Wr1602Dat(-);

          Wr1602Dat(0+yue/16);

          Wr1602Dat(0+yue);

          Wr1602Dat(-);

          Wr1602Dat(0+ri/16);

          Wr1602Dat(0+ri);

          Wr1602Dat();

          Wr1602Dat(W);

          Wr1602Dat(e);

          Wr1602Dat(e);

          Wr1602Dat(k);

          Wr1602Dat(:);

          Wr1602Dat(0+week);

          }

          voidmain()

          {

          Set_1302();

          Init1602();

          Wr1602Cmd(0x80);

          Wr1602Dat(0);

          while(1)

          {

          Display();

          }

          }



          關(guān)鍵詞: 單片機(jī)溫度顯示系

          評(píng)論


          技術(shù)專(zhuān)區(qū)

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();