AndrewMascolo / OnewireKeypad

One Wire Keypad
MIT License
30 stars 14 forks source link

Key_State() pressed only when not held #16

Open TobiasGdot opened 4 years ago

TobiasGdot commented 4 years ago

Is it possible to change the function Key_State() to return Pressed only when key is Held for less than the given holdtime?

My problem is, i always get "pressed" as return value, even if i'm still holding the key and when exceeding the holdtime it returns "held" s it should. But i need to get rid of the pressed when i'm holding a key.