mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 04:58:17 +08:00
第一次提交
add:wifi EasyLink 功能 add:wifi连接 add:wifi数据保存
This commit is contained in:
29
TC1/main.h
Normal file
29
TC1/main.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef __MAIN_H_
|
||||
#define __MAIN_H_
|
||||
|
||||
#include "mico.h"
|
||||
#include "MiCOKit_EXT.h"
|
||||
|
||||
#define Led MICO_GPIO_5
|
||||
#define Button MICO_GPIO_23
|
||||
|
||||
#define Relay_0 MICO_GPIO_6
|
||||
#define Relay_1 MICO_GPIO_7
|
||||
#define Relay_2 MICO_GPIO_8
|
||||
#define Relay_3 MICO_GPIO_9
|
||||
#define Relay_4 MICO_GPIO_10
|
||||
#define Relay_5 MICO_GPIO_18
|
||||
#define Relay_NUM 6
|
||||
|
||||
|
||||
//<2F>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ṹ<EFBFBD><E1B9B9>
|
||||
typedef struct {
|
||||
char val;
|
||||
} user_config_t;
|
||||
|
||||
extern system_config_t * sys_config;
|
||||
extern user_config_t * user_config;
|
||||
|
||||
extern mico_gpio_t Relay[Relay_NUM];
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user