主权项 |
1. An input device comprising: a plurality of key switches in each of which one end is connected to a terminal while the other end is grounded;
a first resistor in which one end is connected between the terminal and the key switch while the other end is connected to a power supply, the key switch beings connected to the terminal while located closest to the terminal in the plurality of key switches; a plurality of second resistors each of which is connected between the two key switches adjacent to each other in the plurality of key switches; a key-in unit that detects an on or off states of each of the plurality of key switches based on voltage at the terminal, and converts the detected on or off state of each of the plurality of key switches into a bit array; and a key processor that performs processing based on the bit array converted by the key-in unit. |