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.

espressif/button

1.0.0

uploaded 3 years ago
GPIO and ADC button driver

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: Apache-2.0

To add this component to your project, run:

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

or download archive

Stats

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

Badge

espressif/button version: 1.0.0
|