单片机矩阵键盘程序求解释和修正!答:没有硬件电路,单从程序来看应该没错。我加了注释,你可以参考下。include<STC12C5A60S2.h> char code table[]={ 0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x00,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e};void delayms(int xms){ int i,j;for(i=xms;i>0;i--) //i=xms...
单片机矩阵键盘程序求解释和修正!答:没有硬件电路,单从程序来看应该没错。我加了注释,你可以参考下。include<STC12C5A60S2.h> char code table[]={ 0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x00,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e};void delayms(int xms){ int i,j;for(i=xms;i>0;i--) //i=xms...