Can I set the long press time for a button? #516
-
I want to implement a button using the button component. Is there a way to make it return the BUTTON_PRESSED_LONG state if the button is pressed for more than 5 seconds? |
Beta Was this translation helpful? Give feedback.
Answered by
swkang0513
May 9, 2023
Replies: 1 comment
-
I modified the CONFIG_BUTTON_LONG_PRESS_TIMEOUT variable in sdkconfig, and it worked. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
swkang0513
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I modified the CONFIG_BUTTON_LONG_PRESS_TIMEOUT variable in sdkconfig, and it worked.