?? keyset.c
字號(hào):
#include"includes.h"
void dlms() //延時(shí)1ms
{
unsigned int i;
for(i=0;i<1900;i++);
}
unsigned char kbscan()
{
unsigned char sccode,recode,temp;
PRT3CF=0xff;
P3=0xf0; //發(fā)全0行掃描碼,列線輸入
PRT3CF=0x00;
temp=P3;
if((temp&0xf0)!=0xf0)
{
dlms();
temp=P3;
if((temp&0xf0)!=0xf0)
{
sccode=0xfe;
while((sccode&0x10)!=0)
{
PRT3CF=0xff;
P3=sccode;
PRT3CF=0x00;
temp=P3;
if((temp&0xf0)!=0xf0)
{
recode=(temp&0xf0)|0x0f;
return((~sccode)+(~recode));
}
else
sccode=(sccode<<1)|0x01;
}
}
}
return(0);
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -