If I want detect the buttons long press for mouse key hold, how to do?
If I want detect the buttons long press for mouse key hold, how to do?
Hi,
Try looking at example "ble_app_hids_mouse" and look at function "buttons_init()".
This shows you how to setup detection delay.
Change define "BUTTON_DETECTION_DELAY" to:
APP_TIMER_TICKS(250, APP_TIMER_PRESCALER)
And then it's setup to 250 ms before it fires the event handler.
Best regards Håkon
@Håkon Alseth / @Manlio: Hi, Could you please suggest any example which describes, Button_multiple_press_handling, like short press, long press and double press...something.?
Please suggest,
Thanks n Regards
hi HSA, did you find any solution for Button_multiple_press_handling. Could you help me with examples of buttons to function with short and long press.
hi HSA, did you find any solution for Button_multiple_press_handling. Could you help me with examples of buttons to function with short and long press.