diff --git a/main/main.c b/main/main.c index 71fba20..671c2b4 100644 --- a/main/main.c +++ b/main/main.c @@ -11,8 +11,8 @@ #include #include "freertos/FreeRTOS.h" #include "freertos/task.h" +#include "freertos/timers.h" #include "freertos/event_groups.h" -#include "driver/spi_master.h" #include "esp_system.h" #include "esp_log.h" #include "esp_console.h" @@ -25,20 +25,28 @@ #include "soc/mcpwm_struct.h" #include "linenoise/linenoise.h" #include "argtable3/argtable3.h" +#include "driver/gpio.h" #include "esp32-wifi-manager.h" #define TAG "CACO" +#define GPIO_INPUT_IO_0 33 +#define GPIO_INPUT_PIN_SEL ((1ULL< " LOG_RESET_COLOR; + gpio_init(); + return; while(true) { char* line = linenoise(prompt);