void delay(uint z)uint x,y;for(x=100;x0;x-) for(y=z;y0;y-);void delay02s(void) /延时 0.2 秒子程序unsigned char i,j,k; /定义 3 个无符号字符型数据。for(i=20;i0;i-) /作循环延时for(j=20;j0;j-)for(k=248;k0;k-);void delay10ms()for(a=100;a0;a-)for(b=225;b0;b-);void delay(unsigned char i)for(j=i;j0;j-)for(k=125;k0;k-);void Delay_xMs(unsigned int x)unsigned int i,j;for( i =0;i 0)i-;count-;void delay(uint x)uint a,b;for(a=x;a0;a-)for(b=10;b0;b-); void delay(int ms)while(ms-)uchar i;for(i=0;i0;x-)for(y=110;y0;y-);