From 0a02f17a5fdd2aef75706ffadc67efa3edf597b3 Mon Sep 17 00:00:00 2001 From: Eggert Jung Date: Sat, 28 Dec 2019 03:13:16 +0100 Subject: [PATCH] gpio input --- main/main.c | 50 ++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 44 insertions(+), 6 deletions(-) diff --git a/main/main.c b/main/main.c index c703f14..e421049 100644 --- a/main/main.c +++ b/main/main.c @@ -8,24 +8,23 @@ #include "esp_log.h" #include "nvs_flash.h" #include +#include "driver/gpio.h" #define WIFI_SSID "AndroidAP" #define WIFI_PASS "uyts6533" +#define ESP_INTR_FLAG_DEFAULT 0 + +uint8_t led_state = 0; // Event group static EventGroupHandle_t wifi_event_group; const int CONNECTED_BIT = BIT0; +static xQueueHandle gpio_evt_queue = NULL; static char* resp_str ="\ \ \ - \ - \ - \ \