This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Recording time for which the button is pressed

Hi,

I want to count the time in seconds for which I press the button and stop the counter when the button is released. How should I detect the long press of button and determine the time for which it was pressed ? I have a nrf 51 development board. Any suggestions would be appreciated.

Related