Chapter 2. API Reference
Parameters
• [in] element_message: element message
Structures
struct touch_button_global_config_t
Button initialization configuration passed to touch_button_install.
Public Members
float threshold_divider
Button channel threshold divider.
uint32_t default_lp_time
Button default LongPress event time (ms)
struct touch_button_config_t
Button configuration (for new instance) passed to touch_button_create()
Public Members
touch_pad_t channel_num
Button channel number (index)
float channel_sens
Button channel sensitivity.
struct touch_button_message_t
Button message type.
Public Members
touch_button_event_t event
Button event.
Macros
TOUCH_BUTTON_GLOBAL_DEFAULT_CONFIG()
Type Definitions
typedef touch_elem_handle_t touch_button_handle_t
Button handle.
typedef void (*touch_button_callback_t)(touch_button_handle_t, touch_button_message_t *,
void *)
Button callback type.
Enumerations
enum touch_button_event_t
Button event type.
Values:
TOUCH_BUTTON_EVT_ON_PRESS
Button Press event.
TOUCH_BUTTON_EVT_ON_RELEASE
Button Release event.
TOUCH_BUTTON_EVT_ON_LONGPRESS
Button LongPress event.
Espressif Systems 435
Submit Document Feedback
Release v4.4