#include<reg51.h>
#include<intrins.h>
void delay(int a)
{
while(a--);
}
main()
{
unsigned char led=0xfe;
while(1)
{
P0=led;
led=_crol_(led,1);
delay(30000);
P0=0xff;
delay(30000);
}
}
顶一下
(0)
0%
踩一下
(0)
0%