You are using staging server - a separate instance of the ESP Component Registry that allows you to try distribution tools and processes without affecting the real registry.



uploaded 3 years ago
GPIO and ADC button driver


# Component: Button
[Chinese documentation](

After creating a new button object by calling function `button_create()`, the button object can create press events, every press event can have its own callback.

List of supported events:
 * Button pressed
 * Button released
 * Button pressed - repeated
 * Button single click
 * Button double click
 * Button long press start
 * Button long press hold

There are two ways this driver can handle buttons:
1. Buttons connected to standard GPIO
2. Multiple buttons connected to single ADC channel

Supports all targets

License: Apache-2.0

To add this component to your project, run: add-dependency "espressif/button^1.0.0"

or download archive


  • Downloaded in total
    Downloaded in total 8 times
  • Downloaded this version
    This version: 8 times


espressif/button version: 1.0.0