Source: https://www.addicore.com/v/vspfiles/downloadables/Product Downloadables/Project_Interface_Kit/Addicore_12-Key_Keypad_Tutorial.pdf