Browse Source

update

master
zwsd 3 years ago
parent
commit
51a2cc2fbb
  1. 32
      main/main.c

32
main/main.c

@ -20,16 +20,12 @@
#define SUPPORT_KEY_INT 0 #define SUPPORT_KEY_INT 0
#define SUPPORT_ELECTRIC_RELAY 0 #define SUPPORT_ELECTRIC_RELAY 0
#define SUPPORT_DEBUG_LIGHT 1 #define SUPPORT_DEBUG_LIGHT 1
#define SUPPORT_TEMPER_LINE 0
#define SUPPORT_FAN 0
#define ble_uart_tx_size 128 #define ble_uart_tx_size 128
#define ble_uart_rx_size 128 #define ble_uart_rx_size 128
#if SUPPORT_DEBUG_LIGHT
#define DEBUG_LIGHT 12
#define GPIO_DEBUG_LIGHT_OUTPUT_PIN_SEL ((1ULL << DEBUG_LIGHT))
#endif
#if SUPPORT_KEY_INT #if SUPPORT_KEY_INT
#define KEY_INT1 27 #define KEY_INT1 27
#define KEY_INT2 14 #define KEY_INT2 14
@ -37,12 +33,6 @@
#endif #endif
#if 0 //
#define TEMPER_LINE 18 //单总线温度传感器
#define FAN 19 //风扇控制
#endif
#if SUPPORT_ELECTRIC_RELAY #if SUPPORT_ELECTRIC_RELAY
#define ELECTRIC_RELAY1 25 #define ELECTRIC_RELAY1 25
#define ELECTRIC_RELAY2 26 #define ELECTRIC_RELAY2 26
@ -50,6 +40,24 @@
#endif #endif
#if SUPPORT_DEBUG_LIGHT
#define DEBUG_LIGHT 12
#define GPIO_DEBUG_LIGHT_OUTPUT_PIN_SEL ((1ULL << DEBUG_LIGHT))
#endif
#if SUPPORT_TEMPER_LINE
#define TEMPER_LINE 18
#define GPIO_TEMPER_LINE_INPUT_PIN_SEL ((1ULL << TEMPER_LINE))
#endif
#if SUPPORT_FAN
#define FAN 19
#define GPIO_FAN_OUTPUT_PIN_SEL ((1ULL << FAN))
#endif
static uint8_t bluetooth_tx_buffer[ble_uart_tx_size] = {0}; static uint8_t bluetooth_tx_buffer[ble_uart_tx_size] = {0};
static uint8_t bluetooth_rx_buffer[ble_uart_rx_size] = {0}; static uint8_t bluetooth_rx_buffer[ble_uart_rx_size] = {0};

Loading…
Cancel
Save