矩阵键盘 仿真数码管显示.zip
#include
#defineuintunsignedint
#defineucharunsignedchar
sbitwela_1=P2^0;
sbitwela_2=P2^1;
ucharcodetable[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
ucharKeyValue=0; //键值变量
bitsign_1=0,sign_2=0; //位变量
uintcount=0; //计数变量
voiddelayms(uintk)
{
uint
用户评论