//==============================
//8个LED 闪烁
//-------------------------------------
#include <reg51.h>
#include <intrins.h>
#define uchar unsigned char
#define uint
unsigned int//--------------------------------
void DelayMS(uint ms)
{
uchar t;
while(ms--) for (t=0;t<120;t++);
}
//----------------------------------
void main()
{
P2= 0xfe;
while (1)
{
P2 =_crol_(P2,1);
DelayMS(200);
}
}
追问能给一份不用数组的吗?
追答没数组啊...
本回答被提问者采纳