单片机流水灯答:0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};//0-7 流水灯unsigned char code seg1[]={0xfe,0xfd,0xfb,0xf7,0xff};unsigned char code seg2[]={0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe,0xff};unsigned char code seg3[]={0xf7,0xfb,0xfd,0xfe};unsigned char code seg4[]...
51单片机 8盏花样流水灯答:ORG0000H AJMPMAIN ORG0030H MAIN:MOVR1,#7;MOVA,#0FCH LOOP1:MOVP1,A RLA CALLDELAY DJNZR1,LOOP1 MOVP1,00H CALLDELAY CALLDELAY MOVR1,#7;MOVA,#3FH LOOP2:MOVP1,A CALLDELAY RRA DJNZR1,LOOP2 MOVP1,#00H CALLDELAY SJMP MAIN DELAY:MOVR4,#4 MOVR5,#200 MOVR6,#248 DJNZR6...