This is a library with sample code to use a 4x5 or 5x4 Matrix or keypad with an ATmega AVR controller.