keypad matrix and seven segment display