Method and device for detecting keyboard key values

The invention provides a method and a device for detecting keyboard key values. The method includes the steps of: executing keyboard scanning; obtaining a current keyboard detection state, the current keyboard detection state including any one of a first keyboard detection state, a second keyboard d...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: SUI PINGLI, PENG HAO
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a method and a device for detecting keyboard key values. The method includes the steps of: executing keyboard scanning; obtaining a current keyboard detection state, the current keyboard detection state including any one of a first keyboard detection state, a second keyboard detection state, a third keyboard detection state and a fourth keyboard detection state; executing an operation corresponding to the current keyboard detection state according to the current keyboard detection state and the current key state; and updating the current keyboard detection state as a new keyboard detection state when the operation result satisfies a state update condition. The four current keyboard detection states indicate the processes that the keys are pressed and finally recognized and efficient, so that the division of keyboard detection states is clear and simple, and thus MCU resources are efficiently used. At the same time the storage and distribution of the key value information are separated.