From 8ae325fbabd47427138e997df9f6a94272a8da85 Mon Sep 17 00:00:00 2001 From: "Morgan 'ARR\\!' Allen" Date: Mon, 12 Oct 2020 21:33:29 -0700 Subject: [PATCH] add gpio mapping --- include/main.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/include/main.h b/include/main.h index ba7a841..c0f1319 100644 --- a/include/main.h +++ b/include/main.h @@ -3,17 +3,11 @@ #include "nvs_flash.h" -#include "esp32-lora.h" +#define PUMP_COUNT (4) extern uint8_t mac[6]; -extern lora32_cfg_t lora; - -struct lorcomm_cfg { - char *hostname; - - lora32_cfg_t *lora; - nvs_handle_t nvs_handle; -} lorcomm_cfg; +static uint8_t pump_gpio_map[] = { 27, 26, 25, 23 }; +#define GPIO_PUMP_PIN_SEL ((1ULL<