程序完善题:从左到右的流水灯 /* 名称:从左到右的流水灯 说明:接在 P0 口的 8 个 LED 从左到右循环依次点亮,产生走马灯效果 */ #include #include #define uchar unsigned char #define uint unsigned int // 延时 void DelayMS(uint x) { uchar i; while(x--) { for(i=0;i<120;i++); } } // 主程序 void main() { __________ __________ _________ //请在此处填写语句,完善程序功能 while(1) { P0=_crol_(P0,1); //P0 的值向左循环移动 DelayMS(150); } }