#include <reg52.h>
#include <intrins.h>
#define uint unsigned int;
#define uchar unsigned char;
uchar temp;
sbit sj=P1^4;
void delay(uint z);
void main()
{sj=0;
temp=0xfe;
P0=temp;
while(1)
{
delay (500);
temp=_crol_(temp,1);
}
}
void delay(uint z)
{uint x,y;
for(x=z;x>0;z--)
for(y=110;y>0;z--);
}
沒有在表格里面添加內(nèi)容。
| 歡迎光臨 (http://www.raoushi.com/bbs/) | Powered by Discuz! X3.1 |