mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 04:58:17 +08:00
fix:优化rtc及sntp逻辑
fix:优化部分函数名 add:增加relay直接控制函数(未测试)
This commit is contained in:
@@ -15,6 +15,9 @@
|
||||
#define Led MICO_GPIO_5
|
||||
#define Button MICO_GPIO_23
|
||||
|
||||
#define Relay_ON 1
|
||||
#define Relay_OFF 0
|
||||
|
||||
#define Relay_0 MICO_GPIO_6
|
||||
#define Relay_1 MICO_GPIO_7
|
||||
#define Relay_2 MICO_GPIO_8
|
||||
@@ -30,6 +33,7 @@ typedef struct {
|
||||
char hour; //Сʱ
|
||||
char minute; //<2F><><EFBFBD><EFBFBD>
|
||||
uint8_t repeat; //bit7:һ<><D2BB> bit6-0:<3A><><EFBFBD><EFBFBD>-<2D><>һ
|
||||
char action; //<2F><><EFBFBD><EFBFBD>
|
||||
char on; //<2F><><EFBFBD><EFBFBD>
|
||||
|
||||
} user_plug_task_config_t;
|
||||
|
||||
Reference in New Issue
Block a user