wanghechen 492150c25a 2024.1.19修复按键导致不进入休眠 | 9 mesi fa | |
---|---|---|
.. | ||
include | 9 mesi fa | |
test_apps | 10 mesi fa | |
CHANGELOG.md | 10 mesi fa | |
CMakeLists.txt | 10 mesi fa | |
Kconfig | 10 mesi fa | |
README.md | 10 mesi fa | |
button_adc.c | 10 mesi fa | |
button_gpio.c | 10 mesi fa | |
button_matrix.c | 10 mesi fa | |
iot_button.c | 10 mesi fa | |
license.txt | 10 mesi fa | |
user_button.c | 9 mesi fa |
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=*"