Client code can currently register handler functions to be called when a button is pressed on the keypad. Ideally, client code should also be able to unregister handler functions when they no longer want a certain action to be performed on key press.
Currently, the only way to do this is to call keypad.cleanup() and then create a new Keypad instance, which is inconvenient.
Client code can currently register handler functions to be called when a button is pressed on the keypad. Ideally, client code should also be able to unregister handler functions when they no longer want a certain action to be performed on key press.
Currently, the only way to do this is to call
keypad.cleanup()
and then create a newKeypad
instance, which is inconvenient.