智慧职教: 以下是从左到右点亮的流水灯的程序,灯的点亮时间为1秒,请在划线处补充完整#include /* define 8051 registers */#define uchar unsigned charvoid Delay(unsigned int x);/*******主程序**************/void main(void){uchar i,signal;while(1){signal=0x01;for(i=0;i<8;i++){ signal<<=1; }}}
智慧职教: 以下是从左到右点亮的流水灯的程序,灯的点亮时间为1秒,请在划线处补充完整#include /* define 8051 registers */#define uchar unsigned charvoid Delay(unsigned int x);/*******主程序**************/void main(void){uchar i,signal;while(1){signal=0x01;for(i=0;i<8;i++){ signal<<=1; }}}
1