4*4矩陣鍵掃描函數(shù),我有一句話不明白,
麻哪位給我解釋一下多謝
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)} |