#include
#define uchar unsigned char
#define uint unsigned int
void delay(uint z )
{
uint x,y;
for(x=z;x>0;x--)
for(y=0;y<110;y++);
}
void main()
{
while(1)
{
P1=0x01;
delay(10);
P1=0x02;
delay(10);
P1=0x04;
delay(10);
P1=0x08;
delay(10);
}
}
阅读(362) | 评论(0) | 转发(0) |