boolean DebounceSwitch2() {
int State = 0;
State=(State<<1) | !RawKeyPressed() | 0xe000;
if (State==0x000)
return true;
return false;
}
I'm trying to "port" this to Arduino. I'm pretty sure that RawKeyPressed() would be the same as digitalRead() (for my purposes), but exactly what does the whole line mean?