修改按键配置相关的代码

This commit is contained in:
nhkefus
2025-03-21 12:20:49 +08:00
parent b38f9f91d8
commit f7b6b8ae0a
4 changed files with 192 additions and 75 deletions

View File

@@ -4,7 +4,8 @@
#include "mico.h"
#include "micokit_ext.h"
#define SWITCH_TOTAL_SOCKET 0
#define NO_FUNCTION 0x0F
#define SWITCH_ALL_SOCKETS 0
#define SWITCH_SOCKET_1 1
#define SWITCH_SOCKET_2 2
#define SWITCH_SOCKET_3 3
@@ -12,6 +13,9 @@
#define SWITCH_SOCKET_5 5
#define SWITCH_SOCKET_6 6
#define SWITCH_LED_ENABLE 7
#define REBOOT_SYSTEM 8
#define CONFIG_WIFI 9
#define RESET_SYSTEM 10
extern char socket_status[32];
@@ -23,5 +27,8 @@ bool RelayOut(void);
char* GetSocketStatus();
char* GetShortClickConfig();
void SetSocketStatus(char* socket_status);
void set_key_map(int index, char short_func, char long_func);
char get_short_func(char val);
char get_long_func(char val);
#endif