ESP32 Projects
Start a build

ESP32 Button Interrupt Demo

Count input events from a button using a GPIO interrupt.

Classic ESP32 development boardArduinoBeginner
Parts and source

Before you start

Espressif provides the linked Arduino example. Select the definition for your classic ESP32 carrier and check which pins it exposes.

Getting started

  1. Open the linked example in the Arduino ESP32 core and upload it to your development board.
  2. Follow the example’s pull-up and edge settings. Press once and inspect the count to see whether your switch needs debouncing.

Upstream documentation

Read the original documentation ↗