按钮事物需要重写

This commit is contained in:
2026-07-31 21:28:28 +08:00
parent d9cc6e1f3a
commit 952ff88b6e
7 changed files with 119 additions and 71 deletions
+2
View File
@@ -6,6 +6,7 @@
#define BUTTON_PASS_TIMES 50
#define BUTTON_LONGPASS_TIMES 1000
#define BUTTON_POWER_LONGPASS_TIMES 2000
struct button {
uint8_t lock;
@@ -15,6 +16,7 @@ struct button {
uint8_t pass_;
uint8_t longpassread;
uint32_t time;
uint32_t longpass_time;
};