void Delay(uint x)
{
uchar i;
while(x--)
for(i=120;i>0;i--);
}
那麽當妳在別的函數中用到Delay(10000);就是延時10000ms,也就是10S