5 years ago.

Assigning chronometer to USER_BUTTON

Hi everybody , I have simple question . How can I assign a chronometer to the USER_BUTTON . What I want to do is ; I want to measure time when the button is pressed and released , so that I will create 2 profiles for the green led. First mode is called "short press ". It should work if the chronometer is less than 3 seconds .Second mode is called "Long press "and It should work when the chronometer is above the 3 seconds .

Be the first to answer this question.