Hi, I want to detect long and short press in same button. Define "BUTTON_DETECTION_DELAY" can detect one delay. Let me know to detect more than two delays.
You can start timer on button press event and stop timer on button release event. Thus you can measure button press time.