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

          新聞中心

          EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計應(yīng)用 > 單片機(jī)循環(huán)流水燈2

          單片機(jī)循環(huán)流水燈2

          作者: 時間:2016-11-21 來源:網(wǎng)絡(luò) 收藏
          程序代碼如下:
          // program name: project5.c
          // 功能: 采用循環(huán)結(jié)構(gòu)實現(xiàn)流水燈的控制
          #include
          void delay (unsigned char i) {
          unsigned char j, k;
          for (k=0; k
          for (j=0; j<255; j++);
          }
          void main () {
          unsigned char i, w;
          while (1) {
          w=0x01;
          for (i=0; i<8; i++) {
          P1=~w;
          delay(200);
          w<<=1;
          }
          }
          }



          評論


          技術(shù)專區(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); })();