wanghechen 6018e08ff2 配网恢复不刷屏 | 10 mesiacov pred | |
---|---|---|
.. | ||
include | 10 mesiacov pred | |
test_apps | 10 mesiacov pred | |
CHANGELOG.md | 10 mesiacov pred | |
CMakeLists.txt | 10 mesiacov pred | |
Kconfig | 10 mesiacov pred | |
README.md | 10 mesiacov pred | |
button_adc.c | 10 mesiacov pred | |
button_gpio.c | 10 mesiacov pred | |
button_matrix.c | 10 mesiacov pred | |
iot_button.c | 10 mesiacov pred | |
license.txt | 10 mesiacov pred | |
user_button.c | 10 mesiacov pred |
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=*"