头像-131078

一个黄人

个人成就

获得 3 次赞

帮助过0人

4*6矩阵键盘,有人出来讨论一下吗

void key_scan() { uchar num; P1=0x3d; temp1=P3; temp1=temp1&0x3b; while(temp1!=0x3b) { delay(5); temp1=P3; while(temp1!=0x3b) { temp1=P3; temp1=temp1&0x3b; switch(temp1) { case 0x39:num=3;break; case 0x35:num=4;break; } } } }