C static library for interfacing a matrix keypad to a Raspberry Pi