请问怎么样让流水灯只跑1轮?请问在这个上面怎么加代码?
#include <reg52.h>void delay(unsigned int t){
while(t--){
unsigned char i;
for(i=0;i<125;i++);
}
}
unsigned char j;
unsigned char a[8]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
void main(){
while(1){
for(j=0;j<8;j++){
P1=a[j];
delay(250);
}
}
}