Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to detect long push button?

Hello,

I am using NINA-B406 Custom board which have nRF52833 SOC and using Segger embedded studio with nRF5 SDK v17.0.2 for development.

I want to do the two functions with single push button as Short press and Long Press. When user do Short press of the button, system will do one task and if user do long press of the button, then system will do second task.

I am using usbd_ble_uart_freertos example and getting short press functionality but also need to add long press functionality in freertos only.

Kindly suggest how I can do this. Is there any example for button press in freertos?

Thank you.

Parents Reply Children
No Data
Related