摘要 |
An electronic device with joystick is provided. The joystick includes a receiving space includes a plurality of first conductive elements. The device further includes a plurality of resistors, a chip, and a rotatable post. Each of the first conductive elements is electrically connected to the ground via a resistor. The chip includes a plurality of input pins, and each of the pins is electrically connected to a node between a first conductive element and a resistor. The rotatable post includes a second conductive element. The second conductive element is electrically connected to a direct current power source. When the joystick is rotated, causing the second conductive element to contact with one of the first conductive elements, the voltage of the pin connected to the second conductive element is changed. The chip detects a change of the voltage of the pins and executes corresponding functions according to the detected change.
|