Comments on: ESP-IDF: ESP32 GPIO Interrupts (Button with Debouncing) https://randomnerdtutorials.com/esp-idf-esp32-gpio-interrupts/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 08 May 2026 06:37:27 +0000 hourly 1 https://wordpress.org/?v=6.8.5 By: buzzer https://randomnerdtutorials.com/esp-idf-esp32-gpio-interrupts/#comment-1171849 Tue, 24 Mar 2026 04:40:15 +0000 https://randomnerdtutorials.com/?p=176281#comment-1171849 what is %lu in the code means?

]]>
By: Rui Santos https://randomnerdtutorials.com/esp-idf-esp32-gpio-interrupts/#comment-1167328 Sun, 08 Mar 2026 09:15:57 +0000 https://randomnerdtutorials.com/?p=176281#comment-1167328 In reply to Oleg.

For this guide we are using ESP-IDF v5.5.3, can you try with that version?

(we are not using Arduino Core)

Regards,
Rui

]]>
By: Oleg https://randomnerdtutorials.com/esp-idf-esp32-gpio-interrupts/#comment-1166487 Thu, 05 Mar 2026 00:50:34 +0000 https://randomnerdtutorials.com/?p=176281#comment-1166487 Report changed, but code still not compiling successfully. I using Arduino core for the ESP32 family of SoCs 3.3.7 (last release).

47 | .pull_down_en = GPIO_PULLDOWN_DISABLE,
| ^~~~~~~~~~~~
exit status 1

Compilation error: request for member ‘pull_down_en’ in ‘GPIO_PULLUP_ENABLE’, which is of non-class type ‘gpio_pullup_t’

]]>
By: Rui Santos https://randomnerdtutorials.com/esp-idf-esp32-gpio-interrupts/#comment-1166430 Wed, 04 Mar 2026 18:46:36 +0000 https://randomnerdtutorials.com/?p=176281#comment-1166430 In reply to Oleg.

In the Configure Button GPIO part of the code… Can you change from this:

gpio_config_t io_conf = {
    .intr_type = GPIO_INTR_POSEDGE, // Rising edge interrupt trigger
    .mode = GPIO_MODE_INPUT,
    .pin_bit_mask = (1ULL << BUTTON_GPIO),
    .pull_down_en = GPIO_PULLDOWN_DISABLE,
    .pull_up_en = GPIO_PULLUP_ENABLE
};

To the following:

gpio_config_t io_conf = {
    .pin_bit_mask = (1ULL << BUTTON_GPIO),
    .mode = GPIO_MODE_INPUT,
    .pull_up_en = GPIO_PULLUP_ENABLE
    .pull_down_en = GPIO_PULLDOWN_DISABLE,
    .intr_type = GPIO_INTR_POSEDGE, // Rising edge interrupt trigger
};

Does it remove that compilation error?
Which ESP-IDF version are you using?
Please let me know the results.
Regards,
Rui

]]>
By: Oleg https://randomnerdtutorials.com/esp-idf-esp32-gpio-interrupts/#comment-1166290 Wed, 04 Mar 2026 07:39:53 +0000 https://randomnerdtutorials.com/?p=176281#comment-1166290 error: designator order for field ‘gpio_config_t::mode’ does not match declaration order in ‘gpio_config_t’
49 | };

Compilation error: designator order for field ‘gpio_config_t::mode’ does not match declaration order in ‘gpio_config_t’

]]>