xiaqing:
“暑假”老师不要谦虚!这是我前天琢磨出来的,请给指导一下!voidscan_key(){if(RC3==0&&RE3==0){delay_mS(10);if(RC3==0&&RE3==0){RC2=0;RC0=0;RC1=0;RA5=1;PORTB=0x4f;}}elseif(RE3==0&&RC3==1){delay_mS(10);if(RE3==0&&RC3==1){RC2=0;RC0=1;RC1=0;RA5=0;PORTB=0x5b;}}elseif(RC3==0&&RE3==1){delay_mS(10);if(RC3==0&&RE3==1){RC2=0;RC0=0;RC1=1;RA5=0;PORTB=0x06;}}elseif(RC3==1&&RE3==1){delay_mS(10);if(RC3==1&&RE3==1){RC2=1;RC0=0;RC1=0;RA5=0;PORTB=0x3F;}}}