From 634740893a6799dca9a0d8bcbfc7b7b83c8ae073 Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Sat, 21 Dec 2024 23:42:21 -0500 Subject: [PATCH] ESP IDF Robot --- ESP-IDF_Robot/main/blink_example_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ESP-IDF_Robot/main/blink_example_main.c b/ESP-IDF_Robot/main/blink_example_main.c index f85347284..fb08490d7 100644 --- a/ESP-IDF_Robot/main/blink_example_main.c +++ b/ESP-IDF_Robot/main/blink_example_main.c @@ -121,9 +121,12 @@ void app_main(void) // Initialize the config structure. gpio_config_t io_conf = {}; - + /* Configure the peripheral according to the LED type */ configure_led(); + + io_conf.intr_type = GPIO_INTR_DISABLE; + io_conf.mode = GPIO_MODE_OUTPUT; configure_button(); while (1) {