esp-iot-solution/components/button
2022-08-02 14:20:32 +08:00
..
include button: rename usr_data to hardware_data && allow user to pass arbitrary data through callback. Closes https://github.com/espressif/esp-iot-solution/pull/200 2022-07-04 20:40:56 +08:00
test fix(button): add gpio button and adc button 2021-02-20 10:37:23 +08:00
button_adc.c fix: fix compatibility issues checked by ci; closes #133 2021-10-20 19:39:19 +08:00
button_gpio.c fix(button): add gpio button and adc button 2021-02-20 10:37:23 +08:00
CMakeLists.txt button: fix ADC changes for IDF version >= 5. Closes https://github.com/espressif/esp-iot-solution/pull/204 2022-08-02 14:20:32 +08:00
component.mk fix(button): add gpio button and adc button 2021-02-20 10:37:23 +08:00
idf_component.yml button: fix ADC changes for IDF version >= 5. Closes https://github.com/espressif/esp-iot-solution/pull/204 2022-08-02 14:20:32 +08:00
iot_button.c button: rename usr_data to hardware_data && allow user to pass arbitrary data through callback. Closes https://github.com/espressif/esp-iot-solution/pull/200 2022-07-04 20:40:56 +08:00
Kconfig fix(button): add gpio button and adc button 2021-02-20 10:37:23 +08:00
license.txt button: Add idf-component-manager files 2022-03-08 13:25:53 +08:00
README.md button: Add idf-component-manager files 2022-03-08 13:25:53 +08:00

Component: Button

Chinese documentation

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:

  1. Buttons connected to standard digital GPIO
  2. Multiple buttons connected to single ADC channel