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

          新聞中心

          電容觸摸傳感的理論框架

          ——
          作者:Thomas Perme 微芯科技公司 應(yīng)用工程師 時(shí)間:2009-07-20 來源:電子產(chǎn)品世界 收藏

          if (INDEX == 3) {
           // 如果掃描結(jié)束,則執(zhí)行以下操作

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

          if (PctArray[0] > PCT_ON) {
           // (受影響程度最高的百分比是否大于PCT_ON值?.. 是)
            
           // 按鈕被按下
           switch(IndxArray[0]) {
            case 0: Buttons.BTN0 = 1; // 設(shè)置按鍵的標(biāo)志
              Buttons.BTN1 = 0;    
              Buttons.BTN2 = 0;    
              Buttons.BTN3 = 0;    
              break;       
            case 1: Buttons.BTN0 = 0;
              Buttons.BTN1 = 1;
              Buttons.BTN2 = 0;
              Buttons.BTN3 = 0;
              break;      
            case 2: Buttons.BTN0 = 0;
              Buttons.BTN1 = 0;
              Buttons.BTN2 = 1;
              Buttons.BTN3 = 0;
              break;      
            case 3: Buttons.BTN0 = 0;
              Buttons.BTN1 = 0;
              Buttons.BTN2 = 0;
              Buttons.BTN3 = 1;
              break;      
            default: break;
           }
            
          } else if (PctArray[0] < PCT_OFF) {
           // 受影響程度最高的按鈕是否高于開路時(shí)的程度?
           // .. 釋放所有按鈕。
           Buttons.BTN0 = 0; 
           Buttons.BTN1 = 0;
           Buttons.BTN2 = 0;
           Buttons.BTN3 = 0;
          }

          } // 結(jié)束:if (INDEX == 3){ , 僅限于完整的掃描 



          評論


          相關(guān)推薦

          技術(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); })();