| .. | ||
| include | ||
| test | ||
| button_adc.c | ||
| button_gpio.c | ||
| CMakeLists.txt | ||
| component.mk | ||
| idf_component.yml | ||
| iot_button.c | ||
| Kconfig | ||
| license.txt | ||
| README.md | ||
Component: Button
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:
- Button pressed
- Button released
- Button pressed - repeated
- Button single click
- Button double click
- Button long press start
- Button long press hold
There are two ways this driver can handle buttons:
- Buttons connected to standard digital GPIO
- Multiple buttons connected to single ADC channel