Scan locating method for independent keyboard
暂无分享,去创建一个
The invention discloses a scan locating method for an independent keyboard, which is suitable for the design on an independent keyboard of an electronic product. The method comprises the following steps of: initializing a keyboard, reading the current key value when the keyboard scanning time is reached, merging the latest four key values to form an identification code, looking up a table according to the identification code to obtain a key number, and carrying out corresponding processing according to the key number. The key number is obtained in a way of looking up the table, single-key operation and combination-key operation can be simultaneously processed, only the size of an effective identification code table needs to be increased or reduced or the order of identification codes in the effective identification code table needs to be adjusted when the operation functions of keys are increased or reduced or adjusted, and the independent keyboard is simple in algorithm and convenient to maintain.