default

Example of the component esp-idf-lib/button v1.0.5
# Example for `button` component

## What it does

This example initializes two buttons and sets up a handler for them.

## Wiring

| Name | Description | Defaults |
|------|-------------|----------|
| `CONFIG_EXAMPLE_BUTTON1_GPIO` | GPIO number connected to the first button | "14" for `esp8266` and `esp32c3`, "16" for `esp32`, `esp32s2`, and `esp32s3` |
| `CONFIG_EXAMPLE_BUTTON2_GPIO` | GPIO number connected to the second button | "12" for `esp8266` and `esp32c3`, "17" for `esp32`, `esp32s2`, and `esp32s3` |

![Wiring](buttons_example.png?raw=true)

To create a project from this example, run:

idf.py create-project-from-example "esp-idf-lib/button=1.0.5:default"

or download archive (~21.76 KB)