From 5804a23d55246d87c67fe161f93ba5d17218cd14 Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Sun, 22 Dec 2024 08:26:46 -0500 Subject: [PATCH] ESP IDF Robot --- ESP-IDF_Robot/main/blink_example_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ESP-IDF_Robot/main/blink_example_main.c b/ESP-IDF_Robot/main/blink_example_main.c index 8697bb092..6ef0f8ab2 100644 --- a/ESP-IDF_Robot/main/blink_example_main.c +++ b/ESP-IDF_Robot/main/blink_example_main.c @@ -123,7 +123,6 @@ static void configure_button (void) { void app_main(void) { - // Initialize the config structure. gpio_config_t io_conf = {}; @@ -159,8 +158,8 @@ void app_main(void) while (1) { ESP_LOGI(TAG, "Turning the LED %s!", s_led_state == true ? "ON" : "OFF"); //blink_led(); - gpio_set_level(BLINK_GPIO, s_led_state); /* Toggle the LED state */ + gpio_set_level(BLINK_GPIO, s_led_state); s_led_state = !s_led_state; vTaskDelay(CONFIG_BLINK_PERIOD / portTICK_PERIOD_MS); }