一个简单的关于矩阵键盘的问题!
#include#defineucharunsignedchar#defineuintunsignedintucharcodetable[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e,0xff};ucharnum,temp;voiddelay(uintz);voidmain(){ while(1) { P1=0xfe; temp=P1; temp=te ...