From 996a8b687f4deb769bc8e5f04319f10e3b884c2a Mon Sep 17 00:00:00 2001 From: "Morgan 'ARR\\!' Allen" Date: Sat, 14 Sep 2019 18:40:37 -0700 Subject: [PATCH] it takes pictures, it uses timers, its great --- main/main.c | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 72 insertions(+), 3 deletions(-) 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);