Handling Keypad Buffer Overflows

Top  Previous  Next

The on_kp_overflow event will tell you that the input buffer of the keypad has been overwhelmed with frantic user input and the kp. object is now disabled. You respond appropriately:



Sub On_kp_overflow

     lcd.print("WHAT'S THE RUSH? SLOW DOWN!",0,0) 'tell the user

     kp.enabled=YES 're-enable the keypad; this also clears the internal FIFO of the keypad object

End Sub



There is also a kp.overflow R/O property. You can query it to check if the keypad is currently in the overflow state.