Add REG_ID_OFF to power off picocalc

add button callback when short press Power key of picocalc
This commit is contained in:
cuu
2025-08-01 15:02:23 +08:00
parent ebdc77ad4a
commit 8b6822a80c
3 changed files with 21 additions and 1 deletions

View File

@@ -58,6 +58,8 @@ enum key_state
#define KEY_F9 0x89
#define KEY_F10 0x90
#define KEY_POWER 0x91
typedef void (*key_callback)(char, enum key_state);
typedef void (*lock_callback)(bool, bool);