wanghechen 492150c25a 2024.1.19修复按键导致不进入休眠 пре 8 месеци
..
include 492150c25a 2024.1.19修复按键导致不进入休眠 пре 8 месеци
test_apps 281cc91e4d 2023.12.25出货版本 пре 9 месеци
CHANGELOG.md 281cc91e4d 2023.12.25出货版本 пре 9 месеци
CMakeLists.txt 281cc91e4d 2023.12.25出货版本 пре 9 месеци
Kconfig 281cc91e4d 2023.12.25出货版本 пре 9 месеци
README.md 281cc91e4d 2023.12.25出货版本 пре 9 месеци
button_adc.c 281cc91e4d 2023.12.25出货版本 пре 9 месеци
button_gpio.c 281cc91e4d 2023.12.25出货版本 пре 9 месеци
button_matrix.c 281cc91e4d 2023.12.25出货版本 пре 9 месеци
iot_button.c 5150e018db 修改关机进入休眠,只刷左屏 пре 8 месеци
license.txt 281cc91e4d 2023.12.25出货版本 пре 9 месеци
user_button.c 492150c25a 2024.1.19修复按键导致不进入休眠 пре 8 месеци

README.md

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 multiple click
  • Button long press start
  • Button long press hold
  • Button long press up

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

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