- void main()
- {
- unsigned char Xd=0,xz=255,cs=4,ss=0,s1=0,s2=0,s3=0,s4=3,
- wy[]={0,0,0,0,0,0,0,0},sj[]={4,5,6,7,8,9,10,11};
- unsigned int wei=47474;unsigned long yw = 123; P0=P1=P2=P3=Js=0;
- ZhongDuanSheZhi();
-
- while(1)
- {
- if(wy[s1]==0)wy[s1]=128;else ;s3=0;
- while(s3<8){smxs(sj[s3],wy[s3],1);++s3;}
-
- if(Js==10)
- {
- while(s2<s1+1&&s2<8){wy[s2]/=2;++s2;}
- if(++s1>15)s1=0;else;
- s2=Js=0;
- }
- }
- }
復制代碼 主程序如上,其他代碼看往昔的帖子里面.
|