wanghechen 492150c25a 2024.1.19修复按键导致不进入休眠 | hai 9 meses | |
---|---|---|
.. | ||
include | hai 9 meses | |
test_apps | hai 10 meses | |
CHANGELOG.md | hai 10 meses | |
CMakeLists.txt | hai 10 meses | |
Kconfig | hai 10 meses | |
README.md | hai 10 meses | |
button_adc.c | hai 10 meses | |
button_gpio.c | hai 10 meses | |
button_matrix.c | hai 10 meses | |
iot_button.c | hai 10 meses | |
license.txt | hai 10 meses | |
user_button.c | hai 9 meses |
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:
There are three ways this driver can handle buttons:
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=*"