I am using nRF 52 development board. Using Keil to program it. Its has 4 buttons. We can easily detect when a button is pressed, but is there a way to know for how much time it was pressed?
I am using nRF 52 development board. Using Keil to program it. Its has 4 buttons. We can easily detect when a button is pressed, but is there a way to know for how much time it was pressed?
By saving the time (app_timer_cnt_get) when the button is pressed, and doing the same when the button is released and calculate the difference?
Did you figure this out abuzar?