uint CodingsWitchPolling()
{
sta
tic Uchar Aold,Bold;
static Uchar st;
uint tmp = 0;
if(CodingsWitch_A&&CodingsWitch_B) //这句话是什么意思?
st = 1;
if(st) //这句话是什么意思?
{
if(CodingsWitch_A==0&&CodingsWitch_B==0)
{
if(Bold) //这句话是什么意思?
{
st = 0;
tmp++;
}
if(Aold) //这句话是什么意思?
{
st = 0;
tmp--;
}
}
}
Aold = CodingsWitch_A;
Bold = CodingsWitch_B;
return tmp;
一周热门 更多>