uploaded 2 years ago
GPIO and ADC button driver

readme

Component Registry

Component: Button

Online 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 repeat
  • Button press repeat done
  • Button single click
  • Button double click
  • Button long press start
  • Button long press hold

There are three ways this driver can handle buttons:

  1. Buttons connected to standard digital GPIO
  2. Multiple buttons connected to single ADC channel
  3. Custom button connect to any driver

Add component to your project

Please use the component manager command add-dependency to add the button to your project's dependency, during the CMake step the component will be downloaded automatically

Plaintext

idf.py add-dependency "espressif/button=*"

Links

Supports all targets

License: Apache-2.0

To add this component to your project, run:

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

or download archive

Stats

  • Archive size
    Archive size ~ 20.99 KB
  • Downloaded in total
    Downloaded in total 549.1k times
  • Downloaded this version
    This version: 672 times

Badge

espressif/button version: 2.5.4
|