您的位置 首页 厂商

单片机8级七彩流水突变

includereg51h>sbitsent=P3^7;bitflag=0;sbitp35=P3^5;sbitp34=P3^4;sbitp31=P3^1;sbitp30=P3^0;sbitp17

#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

声明:本文内容来自网络转载或用户投稿,文章版权归原作者和原出处所有。文中观点,不代表本站立场。若有侵权请联系本站删除(kf@86ic.com)https://www.86ic.net/changshang/319432.html

为您推荐

联系我们

联系我们

在线咨询: QQ交谈

邮箱: kf@86ic.com

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

返回顶部