延时函数 #define uint unsigned int void delayms(uint xms){ uint i, j; for(i=xms;i>0;i--) //延时xms毫秒(ms) for(j=110;j>0;j--); }