mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-20 00:43:22 +08:00
修改按键配置相关的代码
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user