Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 8 months 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 .