#include<reg52.h>
#include<intrins.h>
#define uint unsigned int
#define uchar unsigned char
uchar led;
void delay(uint z)
void main()
{ led=oxfe;
P1=led;
while(1)
{ led=_crol_(led,1);
delay(300);
led=1;
}
}
void delay(uint z)
{ uchar x,y;
for(x=z;x>0;x--)
for(y=110;y>0;y--);
}
此帖出自
小平头技术问答
一周热门 更多>