4*4矩阵键扫描函数,我有一句话不明白,
麻哪位给我解释一下多谢
Uchar kbscan(void)
Uchar sccode,recode
P1=0xf0
If(p1&0xf0)!=0xf0
{sccode=0xfe
While((sccode&0x10)!=0)这句是什么意思???
{p1=sccode;
If((p1&0xf0)!=0xf0)
{recode=(p1&0xf0)|0xf0)
Return((~sccode)+(~recode))
}
Else
Sccode=(sccode<<1)|0x01}}}return(0)} |