STC89C52RC 单片机 8 位流水灯程序电路很简单就不用画了 就是 P0口上个接上啦电阻 然后接 8个 led灯 #include /头文件/*宏定义*/#define uint unsigned int#define uchar unsigned char/*数组定义并赋值*/uchar LED=0XFE,0XFD,0XFB,0XF7,0XEF,0XDF,0XBF,0X7F;/*延时子程序*/void delayms(uint xms)uint i,j; for(i=xms;i0;i-) for(j=124;j0;j-); /*主程序*/void main()uchar n; while(1) for(n=0;n