采用51单片机的流水灯电路图及源程序#includereg52.h#includeinstrins.h#defineucharunsignedchar#defineuintunsignedintucharcodeled[]={0xfe,0xfb,0xfd,0xf7,0xef,0xbf,0xdf,0x7f};delay(uintz){uintx,y;for(x=z;x0;x--)for(y=110;y0;y--);}main(){uinti;while(1){P2=led[];delay(500);_crol_(led,1);}}