Page 1 of 1

[CLOSED] GPIO interrupt from buttons not always triggering

Posted: Sat Apr 25, 2020 8:41 pm
by DurandA
Hi,

I attached interrupts to GPIO32/GPIO33 with internal pull-up to detect button presses (NEGEDGE) similarly to the gpio_example (https://github.com/espressif/esp-idf/bl ... ple_main.c).
odroid-go-gpio.png
odroid-go-gpio.png (44.82 KiB) Viewed 3396 times
However, the ISR is not always triggered. In fact, it is triggered ~1 out of 4 button presses (more or less randomly). Do ISRs only trigger on fast edges?

Re: GPIO interrupt from buttons not always triggering

Posted: Sun Apr 26, 2020 12:05 am
by DurandA
Shame on me. :oops: I correctly set pull up but forgot to initialize pull_down_en to 0.