说明: 矩阵键盘扫描程序 uchar getkey(void) //扫描取键值程序 { uchar rcode,ccode; P3=0xf0; if((P3&0xf0)!=0xf0) { delayms(20); //为消除抖动,延时20ms if((P3&0xf0)!=0xf0) { rcode=0xfe; //开始发行扫描信号 while((rcode&0x10)!=0) { P3=rcode; if((P3&0xf0)!=0xf0) { ccode=(P3&0xf0)|0x0f; do{;}wh
<zhaozaiyou> 在 上传 | 大小:115712