sbit SW 1 = p3^5;
sbit led = p3^2;
無效延遲()
{
無符號整數x,y=100
for(x = 5;y & gt0;y-);
}
空心面()
if(sw1==0)
delay();
led=!led