2、temp<<(3-i));P2=0;temp=temp<
3、<1;delay(500);}for(i=0;i<=3;i++){temp=0x01;P0=(temp<<(7-i)
4、temp<<(0+i));P2=0;temp=temp<<1;delay(500);}P2=0xff;P0=0x00;}voidtuan6(void){chari,temp;temp=0xfe;for(i=0;i<=7;i++){P0=~temp;P2=0x00;temp=temp<<1;delay(500);}temp=0x80;for(i=0;i<=7;i++){P0=~temp;P2=0x00;temp=temp>>1;
5、delay(500);}P2=0xff;P0=0x00;}voidtuan5(void){unsignedchari,temp;temp=0x01;for(i=0;i<=7;i++){P0=temp;P2=0x00;temp=temp<<1;delay_ms(500);}temp=0x80;for(i=0;i<=7;i++){P0=temp;P2=0x00;temp=temp>>1;delay(500);}P2=0xff;P0=0x00;}voidtuan4(void){unsignedchari=0,j=0,k=0;for(;;){for(
6、i=0;i<=7;i++){P2=0xff;P0=form4[k][i];P2=~(0x80>>i);delay(1);}if(j++>=70){j=0;if(k++>=9)k=0;}if(P1!=0xff){P2=0xff;P0=0x00;break;}}}voidtuan3(void){unsignedchari=0,j=0,k=0;for(;;){for(i=0;i<=7;i++){P2=0xff;P0=form3[k][i];P2=~(0x80>>i);delay(1);}if(j++>=70){j=0;if(k++>=4)k=0;}
7、if(P1!=0xff){P2=0xff;P0=0x00;break;}}}voidtuan2(void){unsignedchari=0,j=0,k=0;for(;;){for(i=0;i<=7;i++){P2=0xff;P0=form2[k][i];P2=~(0x80>>i);delay(1);}if(j++>=70){j=0;if(k++>=6)k=0;}if(P1!=0xff){P2=0xff;P0=0x00;break;}}}voidtuan1(void){unsignedchari=0,j=0,k=0;for(;;){for(i=
8、0;i<=7;i++){P2=0xff;P0=form1[k][i];P2=~(0x80>>i);delay(1);}if(j++>=70){j=0;if(k++>=3)k=0;}if(P1!=0xff){P2=0xff;P0=0x00;break;}}}voidtuan0(void){unsignedchari=0,j=0,k=0;for(j=0;;){for(i=0;i<=7;i++){P2=0xff;P0=form0[i+k];P2=~(0x80>>i);delay(1);}if(j++>=70){j=0;if(k++==14)k=0;
9、}if(P1!=0xff){P2=0xff;P0=0x00;break;}}}unsignedcharcodeform0[]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x3C,0x7E,0xDB,0x99,0x18,0x18,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};unsignedcharcodeform1[4][8]={0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,0x00,0x00,0x3C,0x24,
10、0x24,0x3C,0x00,0x00,0x00,0x7E,0x42,0x42,0x42,0x42,0x7E,0x00,0xFF,0x81,0x81,0x81,0x