int0_init(); //外部中断初始化,设置成上升沿中断或下降沿中断
int0() interrupt X //中断函数,中断号我忘记了
{
P1|=0X01;
delay();
P1|=0X02;
delay();
P1|=0X04;
delay();
P1|=0X08;
delay();
P1|=0X10;
delay();
P1|=0X20;
delay();
P1|=0X40;
delay();
P1=0X00;
delay();
P1=0,
}
一定要用中断吗?加好友具体说明下吧