readme

# Component: Button
[Chinese documentation](https://docs.espressif.com/projects/espressif-esp-iot-solution/en/latest/input_device/button.html)

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 unspecified

To add this component to your project, run:

idf.py add-dependency "espressif/button^1.0.0"

or download archive

Dependencies

  • ESP-IDF >=4.0
  • Stats

    • Downloaded in total
      Downloaded in total 135.3k times
    • Downloaded this version
      This version: 1.5k times

    Badge

    espressif/button version: 1.0.0
    |