<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ī)8級(jí)七彩流水漸變

          單片機(jī)8級(jí)七彩流水漸變

          作者: 時(shí)間:2016-11-29 來(lái)源:網(wǎng)絡(luò) 收藏
          #include
          sbit sent=P3^7;bit flag=0;sbit p35=P3^5;sbit p34=P3^4;sbit p31=P3^1;sbit p30=P3^0;sbit p17=P1^7;sbit p16=P1^6;unsigned char bdata p3;sbit  r1=p3^5;sbit  g1=p3^4; sbit  b1=p3^3;sbit  r2=p3^2;sbit  g2=p3^1;sbit  b2=p3^0;sbit p15=P1^5;sbit p14=P1^4;sbit p13=P1^3;sbit p12=P1^2;sbit p11=P1^1;sbit p10=P1^0;unsigned char bdata p1;sbit  r3=p1^5;sbit  g3=p1^4; sbit  b3=p1^3;sbit  r4=p1^2;sbit  g4=p1^1;sbit  b4=p1^0;unsigned char code port1[7]=   {0x00,0x24,0x12,0x12,0x09,0x09,0x24,                             };unsigned char code port2[7]=   {0x20,0x34,0x16,0x1a,0x0b,0x29,0x25,                              };unsigned char code port3[7]= {0x24,0x36,0x36,0x1b,0x1b,0x2d,0x2d,};main()         {unsigned char i3=0,i1=0,j,m,n3=2,n1=0,number=0;while(1){sent=1;if(n3==6) sent=0;for(m=0;m<248;m++){for(j=0;j<248;j++){if(i3==0||i1==0||i3==1||i1==1||i3==3||i1==3||i3==5||i1==5){if(n3-2j/31)  p3=port3[i3];if(n1-2>j/31)  p1=port3[i1];p35=r1;p34=g1;p31=b1;p30=r2;p17=g2;p16=b2;p15=r3;p14=g3;p13=b3;p12=r4;p11=g4;p10=b4;}if(i3==2||i1==2||i3==4||i1==4||i3==6||i1==6){                       if(n3-2>j/31)  p3=port1[i3];if(n1-2>j/31)  p1=port1[i1];if(n3-2==j/31)  p3=port2[i3];if(n1-2==j/31)  p1=port2[i1];if(n3-2
          				
                      
                          
          			
          							

          評(píng)論


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