<span style="" >#include<reg52.h>
#define uint unsigned int
#define uchar unsigned char
void delay(uint xms)
{
uint i,j;
for(i=xms;i>0;i--)
for(j=110;j>0;j--);
}
void main()
{
uint aa=0x01;
——————————————
while(1)
{
P1=~aa;
delay(200);
aa=aa<<1;
if(aa==0)
aa=0x01;
}
}
一周热门 更多>