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