-
Notifications
You must be signed in to change notification settings - Fork 881
Open
Labels
Description
Hi,
iot_button_get_long_press_hold_cnt
there is no Sample, in which Event cases it is possible.
for the other 2 Cases we have:
if (BUTTON_PRESS_REPEAT == event || BUTTON_PRESS_REPEAT_DONE == event) {
ESP_LOGI(TAG, "\tREPEAT[%d]", iot_button_get_repeat(arg));
}
if (BUTTON_PRESS_UP == event || BUTTON_LONG_PRESS_HOLD == event || BUTTON_LONG_PRESS_UP == event) {
ESP_LOGI(TAG, "\tTICKS[%"PRIu32"]", iot_button_get_ticks_time(arg));
}
so it is quite clear which Events apply.
pls give same for iot_button_get_long_press_hold_cnt
Thanks !