wanghechen d1264dadeb 配上关机会有bug | vor 10 Monaten | |
---|---|---|
.. | ||
include | vor 10 Monaten | |
test_apps | vor 10 Monaten | |
CHANGELOG.md | vor 10 Monaten | |
CMakeLists.txt | vor 10 Monaten | |
Kconfig | vor 10 Monaten | |
README.md | vor 10 Monaten | |
button_adc.c | vor 10 Monaten | |
button_gpio.c | vor 10 Monaten | |
button_matrix.c | vor 10 Monaten | |
iot_button.c | vor 10 Monaten | |
license.txt | vor 10 Monaten | |
user_button.c | vor 10 Monaten |
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=*"