ESP32 Button Interrupt Demo
Count input events from a button using a GPIO interrupt.
Parts and sourceBefore you start
Espressif provides the linked Arduino example. Select the definition for your classic ESP32 carrier and check which pins it exposes.
Getting started
- Open the linked example in the Arduino ESP32 core and upload it to your development board.
- Follow the example’s pull-up and edge settings. Press once and inspect the count to see whether your switch needs debouncing.