按键扫描一开始做这几步的目的是什么有知道的吗
P0 |= 0x30;
P3 |= 0x40;
KEY5 = 0;
KEY2 = 1;
if(KEY3 == 0)
{
F_KEY1 = 1;
}
if(KEY4 == 0)
{
F_KEY2 = 1;
}
if(KEY1 == 0)
{
F_KEY3 = 1;
}
KEY5 = 1;
KEY2 = 0;
if(KEY3 == 0)
{
F_KEY4 = 1;
}
if(KEY4 == 0)
{
F_KEY5 = 1;
}
if(KEY1 == 0)
{
F_KEY6 = 1;
} |